ocaml-opentelemetry/src/ambient-context/dune
Simon Cruanes e79df14a90
refactor thoroughly ambient-context
we have a new explicit `Storage.t` interface, that can be used to
get a `Context.t` (a hmap) and to locally swap it; then we have multiple
implementations of the Storage; and then we have a singleton atomic
containing the "main" storage.
2026-01-20 00:15:11 -05:00

21 lines
484 B
Text

(library
(name opentelemetry_ambient_context)
(public_name opentelemetry.ambient-context)
(synopsis
"Abstraction over thread-local storage and fiber-local storage mechanisms")
(flags
:standard
-open
Opentelemetry_ambient_context_core
-open
Opentelemetry_atomic)
(libraries
hmap
atomic
opentelemetry.ambient-context.core
opentelemetry.atomic
(select
default_.ml
from
(opentelemetry.ambient-context.tls -> default_.tls.ml)
(-> default_.map.ml))))