Simon Cruanes
5629555a72
trace.lwt: do not provide a ambient-span-provider except in docs; add docs
...
it's too backend-specific, it would clash eg with the opentelemetry
ambient span provider. Better let the user know this.
2026-04-15 10:55:55 -04:00
Simon Cruanes
42bf837113
add Trace_lwt optional library ( #47 )
...
* add Trace_lwt optional library
provides a with_span that's lwt friendly, as well as a ambient span
provider.
* test: extract recorder used for ambient tests
* tests for trace.lwt
* opam
2026-04-14 14:10:32 -04:00
Simon Cruanes
83d408355b
change CI to use container images
2026-04-13 13:10:54 -04:00
Simon Cruanes
41b152c789
doc
2026-03-03 09:23:34 -05:00
Simon Cruanes
dd30ae0858
prepare for 0.12
2026-02-27 21:53:15 -05:00
Simon Cruanes
fd6eac6ea8
format
2026-02-26 12:33:53 -05:00
Simon Cruanes
a36f91b350
fix tests
2026-02-26 12:33:53 -05:00
Simon Cruanes
3752d70403
testing with domains
2026-02-26 12:33:53 -05:00
Simon Cruanes
72d64be0c3
additional unit tests
2026-02-26 12:33:53 -05:00
Simon Cruanes
0a95e5ff37
test for TLS as ambient-span-provider
2026-02-26 12:33:53 -05:00
Simon Cruanes
fe50b4d325
CI
2026-02-26 12:33:53 -05:00
Simon Cruanes
e0a705e391
add trace.thread-local-storage optional library
...
a basic ambient span provider.
2026-02-26 09:36:06 -05:00
Simon Cruanes
aaba8d4db3
use current_span when entering spans or sending messages
...
use the current span if no parent/context span is specified.
2026-02-25 14:16:47 -05:00
Simon Cruanes
4e6c69de8c
Merge pull request #44 from ocaml-tracing/simon/proper-scope-in-collector
...
add ambient_span_provider to get cur_span/with_cur_span
2026-02-25 14:10:02 -05:00
Simon Cruanes
85b501ce14
fix test dune stanza
2026-02-15 21:34:00 -05:00
Simon Cruanes
44bafeca1a
test for runtime events is optional
2026-02-15 16:33:50 -05:00
Simon Cruanes
a20233a455
add CI for formatting
2026-02-15 16:30:57 -05:00
Simon Cruanes
d8cdb2bcc2
runtime events collector, + test
2026-02-11 20:39:25 -05:00
Simon Cruanes
e4d4e23530
add {thread,process}_sort_index extension + TEF support
...
https://github.com/google/perfetto/pull/3273/changes#diff-ecec88c33adb7591ee6aa88e29b62ad52ef443611cba5e0f0ecac9b5725afdba
allows user to sort threads/processes.
2026-02-11 20:16:07 -05:00
Simon Cruanes
627164afd0
update next tag
2026-02-10 20:43:09 -05:00
Simon Cruanes
c711a0dc66
prepare for 0.11
2026-02-06 13:24:33 -05:00
Simon Cruanes
c9cd56d0b5
add enabled to the collector
...
this way we can have collectors that only accept some levels
2026-02-06 13:14:19 -05:00
Simon Cruanes
a4144ff3d1
extensible metric; pass level around in collector
2026-01-21 21:04:53 -05:00
Simon Cruanes
f1633fdcff
readme
2026-01-20 20:34:43 -05:00
Simon Cruanes
6f3b487f35
bit of doc
2026-01-20 20:31:27 -05:00
Simon Cruanes
87d5a0228a
CI: try to fix docs
2026-01-20 20:23:40 -05:00
Simon Cruanes
594a101922
remove unused dep on thread-local-storage
2026-01-20 20:18:16 -05:00
Simon Cruanes
5751c1585c
Merge pull request #43 from ocaml-tracing/simon/full-refactor-open-sum-types-no-more-manual-spans
...
refactor core library
2026-01-20 20:12:15 -05:00
Simon Cruanes
d91174cf32
remove dep on hmap
2026-01-17 22:39:32 -05:00
Simon Cruanes
44f87bdd6b
trace: remove meta_map, not used anymore
2026-01-17 22:39:25 -05:00
Simon Cruanes
12cdccb842
test belongs in trace-tef
2026-01-17 21:13:57 -05:00
Simon Cruanes
ea59d09635
track spans: sort resulting list of unclosed spans
2026-01-17 21:13:49 -05:00
Simon Cruanes
eb4abf2966
compat fix
2026-01-17 21:06:48 -05:00
Simon Cruanes
bb78e9babb
small test for span tracking
2026-01-17 20:54:37 -05:00
Simon Cruanes
f88cd7651c
trace-tef: ?debug option to track spans
2026-01-17 20:54:07 -05:00
Simon Cruanes
254c7e0af9
better, simpler, no fuss trace.debug
...
we can track names and allocate span IDs ourselves by just wrapping the
underlying collector's spans.
2026-01-17 20:53:58 -05:00
Simon Cruanes
67b3deb191
add Trace.with_setup_collector
2026-01-17 20:53:12 -05:00
Simon Cruanes
dd432c4586
add trace.debug to find what spans were not closed on exit
2026-01-17 10:42:59 -05:00
Simon Cruanes
e98c11c9e0
remove dead code and on_tracing_error
2026-01-17 10:42:45 -05:00
Simon Cruanes
40335815b3
update trace.opam a bit
2026-01-16 19:54:28 -05:00
Simon Cruanes
481b5a10b2
remove subscriber entirely
2026-01-16 19:50:50 -05:00
Simon Cruanes
4b4569f956
CI
2026-01-15 22:03:10 -05:00
Simon Cruanes
2bde0d155a
update test outputs
2026-01-15 20:53:40 -05:00
Simon Cruanes
f714482fe4
address warnings
2026-01-15 20:53:15 -05:00
Simon Cruanes
bf76b1f8eb
bench
2026-01-15 20:53:05 -05:00
Simon Cruanes
22d91d4f40
rewrite trace-fuchsia to work with new collector
2026-01-15 20:43:05 -05:00
Simon Cruanes
e2a942fedc
fix tef-tldrs
2026-01-15 20:42:51 -05:00
Simon Cruanes
dc37f68993
rewrite trace-tef so it returns the new collector
2026-01-15 20:42:45 -05:00
Simon Cruanes
7b0197e6c2
trace.util: add Unix_util and Mock_
2026-01-15 20:42:29 -05:00
Simon Cruanes
85ef7f4587
trace.simple: a basic span type as illustration
2026-01-15 20:42:06 -05:00