mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-07 18:37:56 -05:00
Add events to spans created
This commit is contained in:
parent
d6d36ee73d
commit
242d304639
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ module Internal = struct
|
|||
|
||||
let parent_id = Option.map Otel.Span_ctx.parent_id parent in
|
||||
Span.create ~kind ~trace_id:scope.trace_id ?parent:parent_id
|
||||
~id:scope.span_id ~start_time ~end_time ~attrs name
|
||||
~id:scope.span_id ~start_time ~end_time ~attrs ~events:scope.events name
|
||||
|> fst
|
||||
|
||||
let exit_span' otrace_id otel_span_begin =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue