Skip to content

Commit 02763e2

Browse files
committed
Simplify sampling context creation by removing unnecessary attribute merging
1 parent fb3bced commit 02763e2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/sentry/opentelemetry/sampler.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,7 @@ if Code.ensure_loaded?(:otel_sampler) do
157157
parent_sampled: parent_sampled
158158
}
159159

160-
if attributes && map_size(attributes) > 0 do
161-
Map.merge(sampling_context, attributes)
162-
else
163-
sampling_context
164-
end
160+
sampling_context
165161
end
166162

167163
defp make_sampler_decision(traces_sampler, sampling_context, _existing_tracestate) do

0 commit comments

Comments
 (0)