mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
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.
21 lines
484 B
Text
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))))
|