Skip to content

Commit f1183b3

Browse files
committed
Remove build_otel_context for now
This was redundant - we store the attributes in the trace context
1 parent 3767f02 commit f1183b3

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/sentry/opentelemetry/span_processor.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ if Code.ensure_loaded?(OpenTelemetry) do
6868
start_timestamp: root_span_record.start_time,
6969
timestamp: root_span_record.end_time,
7070
contexts: %{
71-
trace: build_trace_context(root_span_record),
72-
otel: build_otel_context(root_span_record)
71+
trace: build_trace_context(root_span_record)
7372
},
7473
spans: child_spans
7574
})
@@ -98,8 +97,6 @@ if Code.ensure_loaded?(OpenTelemetry) do
9897
}
9998
end
10099

101-
defp build_otel_context(span_record), do: span_record.attributes
102-
103100
defp get_op_description(
104101
%{
105102
attributes: %{

0 commit comments

Comments
 (0)