mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-07 18:37:56 -05:00
readme
This commit is contained in:
parent
34a4a87fc3
commit
28b78cd741
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue