From a263b407081f4b048bc00aee0f478de421e027bc Mon Sep 17 00:00:00 2001 From: ajbt200128 Date: Wed, 18 Sep 2024 17:08:16 -0700 Subject: [PATCH] Add events to spans created --- src/trace/opentelemetry_trace.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trace/opentelemetry_trace.ml b/src/trace/opentelemetry_trace.ml index 2960e36e..81afd5f9 100644 --- a/src/trace/opentelemetry_trace.ml +++ b/src/trace/opentelemetry_trace.ml @@ -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 =