c-cube / ocaml-trace

Common interface for tracing/instrumentation libraries in OCaml
https://c-cube.github.io/ocaml-trace/
22 stars 6 forks source link

trace-subscriber #32

Closed c-cube closed 1 month ago

c-cube commented 2 months ago

It might make more sense to put subscriber directly into the core library, for a more consistent setup. Internally, Trace_core could then have either:

and provide setup functions that enforce these states consistently. That means we could add/remove subscribers on the fly if there already are subscribers or nothing.