mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
fix otel.trace: set scope for explicit spans
This commit is contained in:
parent
5aa5c5ed0a
commit
fdee7fe2dd
1 changed files with 5 additions and 1 deletions
|
|
@ -242,7 +242,11 @@ module Internal = struct
|
|||
let active_spans = Active_spans.get () in
|
||||
Active_span_tbl.add active_spans.tbl otrace_id sb;
|
||||
|
||||
Otrace.{ span = otrace_id; meta = Meta_map.empty }
|
||||
Otrace.
|
||||
{
|
||||
span = otrace_id;
|
||||
meta = Meta_map.(empty |> add k_explicit_scope sb.scope);
|
||||
}
|
||||
|
||||
let exit_manual_span Otrace.{ span = otrace_id; _ } =
|
||||
let active_spans = Active_spans.get () in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue