Commit graph

314 commits

Author SHA1 Message Date
Peter Taoussanis
096c432eff [mod] [#39] Remove shell API 2024-12-22 13:58:03 +01:00
Peter Taoussanis
706a8b6d37 [mod] Postal handler now uses default preamble fn for email subject 2024-12-22 13:58:03 +01:00
Peter Taoussanis
55323f1f54 [mod] Default signal-content-fn: omit redundant parent/root id namespaces 2024-12-22 13:58:03 +01:00
Peter Taoussanis
b208532788 [mod] Default signal-content-fn: swap ctx, kvs position 2024-12-22 13:58:03 +01:00
Peter Taoussanis
0464285ce1 [mod] Default signal-content-fn: omit :root if it's same as parent 2024-12-22 13:58:03 +01:00
Peter Taoussanis
7eb46ff555 [nop] Misc housekeeping 2024-12-22 13:58:03 +01:00
Peter Taoussanis
cca8bb33ff [doc] Misc improvements 2024-12-22 13:58:03 +01:00
Peter Taoussanis
55720aca54 [doc] [#35] Emphasize that opts need to be a compile-time map 2024-12-22 13:58:03 +01:00
Peter Taoussanis
822032de13 [doc] Add FAQ item re: event! arg order 2024-12-22 13:50:01 +01:00
Peter Taoussanis
13d9dbfc62 [doc] Document that :msg may be a delay 2024-12-22 13:50:01 +01:00
Peter Taoussanis
484b3df122 [new] Improve error info on worst-case handler errors 2024-12-22 13:50:01 +01:00
Peter Taoussanis
7532c2eca5 [new] Give signal! a default kind and level 2024-12-22 13:49:53 +01:00
Peter Taoussanis
9dc883dce9 [new] Allow manual :run-val override
Useful for eliding noisy/long vals from tracing, etc.
2024-12-20 15:49:53 +01:00
Peter Taoussanis
d78663a528 [new] Omit empty :data, :ctx from signal content output 2024-12-20 15:49:53 +01:00
Peter Taoussanis
385c671756 [new] Add private format-location util 2024-12-20 15:49:53 +01:00
Peter Taoussanis
b58ec7359d [fix] [#36] Fix missing cljdoc docstrings
These remote declarations were unnecessary (vestigial), and seemed
to be causing issues with cljdoc's analysis.
2024-12-20 15:49:53 +01:00
Peter Taoussanis
8c701d4df5 [fix] Signal string representation 2024-12-20 14:38:40 +01:00
Peter Taoussanis
70ccfcfd80 [nop] Bump deps 2024-12-20 14:38:40 +01:00
Peter Taoussanis
69e8ed19b8 v1.0.0-RC1 (2024-10-29) 2024-10-29 10:48:41 +01:00
Peter Taoussanis
b5680c5cb7 [nop] Housekeeping 2024-10-29 10:11:13 +01:00
Peter Taoussanis
e1dcdc8257 [doc] Misc improvements 2024-10-29 10:02:13 +01:00
Peter Taoussanis
e60dde03eb [doc] Add community example for GCP (@xlfe) 2024-10-29 10:02:13 +01:00
Peter Taoussanis
5528102f80 [doc] Restructure community examples 2024-10-29 10:02:13 +01:00
Peter Taoussanis
280ad0823f [doc] Collapsible examples in README 2024-10-29 10:02:13 +01:00
Peter Taoussanis
4f5eda0489 [doc] Fix incorrect :msg_ key info 2024-10-29 10:02:13 +01:00
Peter Taoussanis
3d71b70503 [doc] [#27] Typo in link (@blnote) 2024-10-29 10:02:13 +01:00
Peter Taoussanis
2d8c528a6a [doc] [#25] Expand info on IoC tracing, etc. 2024-10-29 10:02:13 +01:00
Peter Taoussanis
c5c8a188c1 [doc] [#25] Add extra info re: async tracing 2024-10-29 10:02:13 +01:00
Peter Taoussanis
0ca48fa6a1 [doc] Misc improvements 2024-10-29 10:02:13 +01:00
Peter Taoussanis
5a8c407528 [new] Add :ctx+, :middleware+ signal options 2024-10-29 10:02:12 +01:00
Peter Taoussanis
c1e1c1e4cc [new] OpenTelemetry handler: try print map vals as EDN 2024-10-29 10:02:12 +01:00
Peter Taoussanis
5ef4f12c6e [new] [#28] OpenTelemetry handler: support custom signal attrs
Thanks to @benalbrecht for assistance on this feature!
2024-10-29 10:02:12 +01:00
Peter Taoussanis
19548d3fac [new] Simplify default OpenTelemetry providers code, expose SDK 2024-10-29 10:02:12 +01:00
Peter Taoussanis
5ac872566a [new] Add dispatch-signal! util 2024-10-29 10:02:12 +01:00
Peter Taoussanis
9965450f5b [new] writeable-file!: resolve sym links, etc. 2024-10-29 10:02:12 +01:00
Peter Taoussanis
d0ad99d528 [new] Extend IIFE-wrap to Clj
The perf hit is negligible, and we can always re-evaluate this choice again
later. In the meantime, let's err on the side of greatest compatibility.
2024-10-29 10:02:12 +01:00
Peter Taoussanis
f7a56631c5 [fix] signal-opts: allow map forms as intended 2024-10-29 10:02:12 +01:00
Peter Taoussanis
7f52cb1843 [fix] uncaught->error! wasn't working (@benalbrecht)
`__thread` handler arg was being masked by `__thread` in signal implementation,
Ref. https://clojurians.slack.com/archives/C06ALA6EEUA/p1727713025725089
2024-10-29 10:02:12 +01:00
Peter Taoussanis
ecf4824f6b [nop] Bump deps 2024-10-29 09:48:36 +01:00
Peter Taoussanis
980439c646 v1.0.0-SNAPSHOT 2024-09-25 09:21:05 +02:00
Peter Taoussanis
0a3e3e80c6 v1.0.0-beta25 (2024-09-25) 2024-09-25 09:14:48 +02:00
Peter Taoussanis
ce9864a57b v1.0.0-SNAPSHOT 2024-09-23 09:23:22 +02:00
Peter Taoussanis
262c6d4324 v1.0.0-beta24 (2024-09-23) 2024-09-23 09:17:49 +02:00
Peter Taoussanis
88f7a3c7d6 [fix] Don't count non-list run forms 2024-09-23 09:14:29 +02:00
Peter Taoussanis
69df7aa86d v1.0.0-SNAPSHOT 2024-09-22 12:30:14 +02:00
Peter Taoussanis
7e348465ac v1.0.0-beta23 (2024-09-22) 2024-09-22 12:20:14 +02:00
Peter Taoussanis
85772f7335 [new] Cap length of displayed run-form when tracing 2024-09-22 10:38:10 +02:00
Peter Taoussanis
c9e84e8b38 [new] Avoid duplicated trace bodies
Trade off a small performance hit with tracing to avoid duplication
of potentially large expansions, and to help further eliminate potential
issues when embedding within IOT-style macros (`core.async/go`, etc.)
2024-09-20 22:55:12 +02:00
Peter Taoussanis
cbab57be66 [fix] [#21] Work around issue with use in Cljs core.async/go bodies
Problem:
  (clojure.core.async/go (taoensso.telemere/log! "hello")) ; Compiles fine
  (cljs.core.async/go    (taoensso.telemere/log! "hello")) ; Compile fails

I could try to get to the bottom of exactly what's going on - but ultimately
IOC mechanisms like `go` are always going to be a bit fragile, especially for
heavily-optimized/unusual code.

In this case, the problem is thankfully only with Cljs - and Telemere's Cljs
performance isn't too critical - so I think we can afford to just bypass any
potential fiddling by the `go` macro by wrapping Cljs Telemere expansions in
an IIFE ((fn [] ...)).

Downside is the (small) added cost of a function construction and call.
Upside   is avoiding potential issues with core.async and other similar
IOC-style systems (Electric Clojure, etc.)
2024-09-20 22:55:12 +02:00
Peter Taoussanis
568906c96b [fix] [#20] Wrong :arglists meta on spy! 2024-09-20 22:55:12 +02:00