This commit is contained in:
Simon Cruanes 2025-04-10 15:36:06 -04:00
parent 34a4a87fc3
commit 28b78cd741
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -28,7 +28,7 @@ MIT
* [x] batching, perf, etc. * [x] batching, perf, etc.
- [ ] async collector relying on ocurl-multi - [ ] async collector relying on ocurl-multi
- [ ] interface with `logs` (carry context around) - [ ] interface with `logs` (carry context around)
- [x] implicit scope (via [ambient-context][]) - [x] implicit scope (via vendored `ambient-context`, see `opentelemetry.ambient-context`)
## Use ## Use
@ -36,7 +36,7 @@ For now, instrument traces/spans, logs, and metrics manually:
```ocaml ```ocaml
module Otel = Opentelemetry module Otel = Opentelemetry
let (let@) f x = f x let (let@) = (@@)
let foo () = let foo () =
let@ scope = Otel.Trace.with_ "foo" let@ scope = Otel.Trace.with_ "foo"