File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -437,10 +437,7 @@ module Span = struct
437
437
438
438
let to_propagation_context span =
439
439
let traceparent = span |> get_context |> SpanContext. to_traceparent in
440
- span
441
- |> get_context
442
- |> SpanContext. context_of_span_context
443
- |> TraceContext. with_traceparent (Some traceparent)
440
+ span |> get_trace_context |> TraceContext. with_traceparent (Some traceparent)
444
441
445
442
let with_trace_context span trace_context =
446
443
let span_context =
Original file line number Diff line number Diff line change @@ -83,10 +83,7 @@ module Content = struct
83
83
)
84
84
in
85
85
let tags =
86
- let span_context = Span. get_context s in
87
- let trace_context =
88
- SpanContext. context_of_span_context span_context
89
- in
86
+ let trace_context = Span. get_trace_context s in
90
87
let baggage =
91
88
TraceContext. baggage_of trace_context |> Option. value ~default: []
92
89
in
You can’t perform that action at this time.
0 commit comments