Simon Cruanes
5b83834af5
subscriber: restore trace_id
...
we need it for async backends, clearly
2026-01-14 22:29:46 -05:00
Simon Cruanes
322e1d0f44
subscriber: make ~new_span_id mandatory
...
too easy to forget otherwise
2026-01-14 22:09:05 -05:00
Simon Cruanes
a1837e402e
trace.subscriber: define custom span, simplify subscriber callbacks
...
- custom span carries around all the required data, including mutable
args
- no more manual enter/exit callbacks
- use record for callbacks
- no more big Span_tbl
2026-01-14 21:56:09 -05:00
Simon Cruanes
89eecf7ba3
breaking: use poly variants for user_data/span_flavor in subscriber
...
no need to do redundant conversions.
2025-12-04 12:39:03 -05:00
Simon Cruanes
aeb2aff3b7
breaking: require subscribers to provide mk_span/mk_trace_id
...
we want control over this!
2025-12-04 12:31:14 -05:00
Simon Cruanes
76703461ea
feat(trace.subscriber): add Span_tbl, and a depopt on picos_aux
2025-05-07 11:09:42 -04:00
Simon Cruanes
ef50b578f1
refactor(subscriber): timestamps are int64ns now
2025-05-05 15:08:57 -04:00
Simon Cruanes
46242cd817
format
2025-04-11 12:25:47 -04:00
Simon Cruanes
151d80d0f1
breaking: feat(trace): pass a string trace_id in manual spans
...
- in entering manual spans, we now pass an explicit span_ctx that
contains a trace_id (bytes) and the parent span id (int64).
- this makes compat with OTEL easier as we want this sort
of span_ctx to be passed around.
2025-04-09 09:28:09 -04:00
Simon Cruanes
064e6e26bb
prepare for 0.9
2025-01-13 10:17:57 -05:00
Simon Cruanes
4dfa319003
feat: add an extensible sum type for extending the library
...
libraries and collectors can now define their own "events" that
collectors will handle (or not), without having to contribute them to
ocaml-trace at all.
2024-10-29 09:21:09 -04:00
Simon Cruanes
f8b8f00a14
doc
2024-09-17 11:19:25 -04:00
Simon Cruanes
27d4f59523
docs, readme
2024-09-17 11:08:54 -04:00
Simon Cruanes
cc6c311b45
more docs
2024-09-10 10:43:44 -04:00
Simon Cruanes
5b1ad7275b
feat subscriber: avoid polyvariants entirely
2024-09-09 15:59:46 -04:00
Simon Cruanes
8ce4f332c6
fix: smll change for manual spans
2024-09-09 15:33:09 -04:00
Simon Cruanes
bebd037803
wip: trace-subscriber package
2024-09-09 14:14:25 -04:00