imandra-ai / ocaml-opentelemetry

Instrumentation for https://opentelemetry.io
http://docs.imandra.ai/ocaml-opentelemetry/
33 stars 7 forks source link

implicit scope using TLS #27

Closed c-cube closed 1 year ago

c-cube commented 2 years ago

basic thread local storage so that we don't have to carry ?scope around.

c-cube commented 1 year ago

We could have a flag in Global maybe, to disable that.

For otel-lwt, it's unaffected because the only place where TLS is used is in Otel.Trace.with_, that otel-lwt does not use (it reimplements it its own way)