Commit graph

2 commits

Author SHA1 Message Date
Simon Cruanes
c29900d813
add hmap as a depopt
if present, we use `Mmap.t` as the meta map for manual spans
2024-02-24 10:57:18 -05:00
Simon Cruanes
b44e2f2923 Add explicit spans, for async tracing.
These spans require the user to pass the surrounding span, if any, when
entering a new span. They use the information inside (which is collector
specific) to track what asynchronous task is currently being executed.

Wrappers around `trace`, specific to an async library (e.g. Eio, lwt,
Async, etc.) can then smooth this over by providing a `with_async_span`
construct that uses some implicit contextual storage to carry the
`surrounding` scope around.
2023-08-09 00:26:21 -04:00