Commit graph

14 commits

Author SHA1 Message Date
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
946240dda4 [doc] Doc and example improvements 2024-08-07 11:37:00 +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
ebe8a957f5 [new] Add experimental :thread key to Clj signals
Only downside/hesitation is that this info *must* be collected at the callsite,
which means that it affects the performance of *all* created signals.

Adds ~30-50 nsecs per signal.
2024-05-05 13:58:16 +02:00
Peter Taoussanis
12f4b35d71 [doc] Documentation improvements 2024-04-29 12:15:19 +02:00
Peter Taoussanis
46a468d329 [doc] Expand, polish documentation 2024-04-12 17:50:06 +02:00
Peter Taoussanis
5f98e7304f [mod] Rename signal field: :extra-kvs -> :kvs 2024-04-12 16:54:13 +02:00
Peter Taoussanis
0f0e049993 [mod] Rename signal fields: :instant -> :inst, etc. 2024-03-28 16:24:08 +01:00
Peter Taoussanis
50378146c0 [new] Add explicit :extra-kvs to signals
I.e. groups together all user-level kvs for convenience.
2024-03-28 16:24:08 +01:00
Peter Taoussanis
04725e4a47 [mod] Rename signal field: :schema-version -> :schema 2024-03-28 16:24:08 +01:00
Peter Taoussanis
d13e4da5b9 [mod] Rename signal field: :run-value -> :run-val 2024-03-28 16:24:08 +01:00
Peter Taoussanis
25ed34f022 [mod] Rename signal field: :runtime-nsecs -> :run-nsecs 2024-03-28 16:24:08 +01:00
Peter Taoussanis
d8ef32f088 [nop] Misc housekeeping 2024-03-28 16:24:08 +01:00
Peter Taoussanis
5a0d9d8241 [new] Misc API polish, first signal docstrings 2024-03-13 13:01:00 +01:00