Commit graph

376 commits

Author SHA1 Message Date
Peter Taoussanis
064ef32377 [mod] OpenTelemetry handler: rename (generalize)
Handler now does more than just logging.
2024-08-20 19:25:53 +02:00
Peter Taoussanis
a8e92303fa [fix] OpenTelemetry handler: use signal callsite Context as root span parent 2024-08-20 19:25:44 +02:00
Peter Taoussanis
17349a0840 [fix] [#16] OpenTelemetry handler: coerce line attrs (@flyingmachine) 2024-08-20 19:20:56 +02:00
Peter Taoussanis
a1c50f1031 [fix] Decrease min Java version (11->8) (@flyingmachine) 2024-08-20 19:20:56 +02:00
Peter Taoussanis
5b30acc897 [nop] Housekeeping 2024-08-20 18:55:12 +02:00
Peter Taoussanis
c2ad207b18 [doc] New handlers table 2024-08-20 15:14:20 +02:00
Peter Taoussanis
7dc695a18c [doc] Misc improvements 2024-08-20 15:14:20 +02:00
Peter Taoussanis
1c58d99337 v1.0.0-beta18 (2024-08-19) 2024-08-19 16:26:33 +02:00
Peter Taoussanis
290dfe268d [fix] Properly ignore internal :otel-context key 2024-08-19 16:25:13 +02:00
Peter Taoussanis
8b58be68a2 [new] OpenTelemetry handler: auto capture signal context 2024-08-19 16:06:07 +02:00
Peter Taoussanis
c62b8ab4af [new] OpenTelemetry handler: add :otel/context opt (undocumented) 2024-08-19 16:06:07 +02:00
Peter Taoussanis
ae7bb20ed0 [new] OpenTelemetry handler: add extra auto span attrs 2024-08-19 16:06:07 +02:00
Peter Taoussanis
e323896d54 [nop] OpenTelemetry handler: move to latch for span contention protection
This'll be more reliable (and probably faster) under high load than the
small-batch GC.
2024-08-19 16:06:07 +02:00
Peter Taoussanis
67cb4941bf [new] OpenTelemetry handler: add experimental trace output 2024-08-19 16:06:07 +02:00
Peter Taoussanis
599236f451 [mod] OpenTelemetry handler: revert #10
On reflection the choice to drop ":" (and so type info) from ALL attribute
keywords seems excessive. We can instead restrict the change only to
the :level value.

Feedback welcome.
2024-08-19 15:13:12 +02:00
Peter Taoussanis
badbb2c768 [nop] Update benchmark results 2024-08-19 15:13:12 +02:00
Peter Taoussanis
5ab2736c92 [new] Improve uid control, switch to nano-style by default
1. Added `*uid-fn*` to globally control uid style

2. Now distinguish between root and child uids
   Root uids generally need to be longer.

3. Added to utils: `nano-uid-fn` and `hex-uid-fn`
   These use new highly optimized implementations
   when on JVM Clojure, and are highly flexible.
2024-08-19 15:13:12 +02:00
Peter Taoussanis
1cef195715 [new] Add host info to signal content 2024-08-19 15:13:12 +02:00
Peter Taoussanis
d635318f73 [new] Add extra tracing info to signal content
Tracing signals now include:
  :parent {:keys [id uid instant]}
  :root   {:keys [id uid instant]}

The :instant info is undocumented, and useful for advanced cases like
the upcoming Span support for the OpenTelemetry handler.
2024-08-19 15:13:12 +02:00
Peter Taoussanis
8a7e16bf73 [nop] Merge new-signal into signal! macro
This is a little faster, but the main motivation is to avoid the
limit (20) on fn args.
2024-08-19 15:13:12 +02:00
Peter Taoussanis
24d9827dae [doc] Clarify help:signal-creators arg order 2024-08-19 15:13:12 +02:00
Peter Taoussanis
4d2b5d4642 [mod] Decrease level of :on-init signals
:info -> :debug (now below default :min-level)
2024-08-19 15:13:12 +02:00
Peter Taoussanis
54494b33be [nop] Housekeeping 2024-08-19 15:13:12 +02:00
Peter Taoussanis
4efa2656f2 [nop] Bump deps 2024-08-19 15:13:11 +02:00
Peter Taoussanis
f14990efad v1.0.0-beta16 (2024-08-08) 2024-08-08 11:31:28 +02:00
Peter Taoussanis
231942384c [fix] Broken handler ns and kind filters 2024-08-08 11:27:34 +02:00
Peter Taoussanis
a39b720935 [doc] Doc and example improvements 2024-08-08 10:55:30 +02:00
Peter Taoussanis
d71fcb35ed [nop] Housekeeping 2024-08-07 11:55:17 +02:00
Peter Taoussanis
39b4acd0eb [nop] Bump deps 2024-08-07 11:55:17 +02:00
Peter Taoussanis
2c72d0fbfa v1.0.0-beta15 (2024-08-07) 2024-08-07 11:38:11 +02:00
Peter Taoussanis
946240dda4 [doc] Doc and example improvements 2024-08-07 11:37:00 +02:00
Peter Taoussanis
3b6396426e [nop] Housekeeping 2024-08-07 11:13:49 +02:00
Peter Taoussanis
1756069330 [nop] Tune internal handler rate limits 2024-08-07 11:13:49 +02:00
Peter Taoussanis
d2b3e7201d [nop] Move *middleware* and *ctx* to Encore sigs API 2024-08-07 11:13:49 +02:00
Peter Taoussanis
2d4b049717 [fix] [#14] File handler: Don't truncate gzip output 2024-08-07 11:13:49 +02:00
Peter Taoussanis
6e94215e7a [fix] [#10] OpenTelemetry handler: render keywords as plain strings
Before: `:foo/bar` -> ":foo/bar"
After:  `:foo/bar` ->  "foo/bar"
2024-08-07 11:13:49 +02:00
Peter Taoussanis
863cea15fa [fix] [#11] OpenTelemetry handler: signals without message fail 2024-08-07 11:13:49 +02:00
Peter Taoussanis
19a9744c3f [doc] [#13] Add warning about SLF4J API v1 to wiki 2024-08-07 11:13:49 +02:00
Peter Taoussanis
5ef84a5e41 [nop] Bump deps 2024-08-07 11:13:46 +02:00
Peter Taoussanis
c5116878f3 v1.0.0-beta14 (2024-05-25) 2024-05-25 11:19:09 +02:00
Peter Taoussanis
22c46afa04 [mod] Improve SLF4J, tools.logging interop signals
Incl.:

1. Logger names are now used as namespaces.
   - For SLF4J:         these are typically class names.
   - For tools.logging: these are typically *ns* strings.

2. These now have dedicated :kind (:slf4j, :tools.logging) to make it
   easier for users to set kind-specific min levels.
2024-05-25 11:19:09 +02:00
Peter Taoussanis
8f1035ff97 [nop] Consistent tools.logging terminology
The terminology is necessarily a bit complex because of competing constraints.
2024-05-25 11:19:09 +02:00
Peter Taoussanis
c3ce68b512 [new] Add preliminary docs for lib maintainers, etc. 2024-05-25 10:34:54 +02:00
Peter Taoussanis
8886213a2b [nop] Housekeeping 2024-05-25 00:04:00 +02:00
Peter Taoussanis
fbe9057d82 v1.0.0-beta13 (2024-05-23) 2024-05-23 10:11:30 +02:00
Peter Taoussanis
ca9b27f895 [new] Updates for latest Encore signal toolkit changes 2024-05-23 09:43:55 +02:00
Peter Taoussanis
2810ed79a1 v1.0.0-beta12 (2024-05-14) 2024-05-14 13:43:45 +02:00
Peter Taoussanis
cf31d1f358 [new] Add tests for handlers under high volume 2024-05-14 13:39:05 +02:00
Peter Taoussanis
c746e09b62 [new] Add public default-handler-dispatch-opts 2024-05-14 13:39:05 +02:00
Peter Taoussanis
f050521fbd [new] handler:console: don't cache :*out*/:*err* stream
Support case where `*out*` or `*err*` are being modified after handler
is created.
2024-05-14 13:39:05 +02:00