Skip to content

Commit 472ab5c

Browse files
committed
add attrs
1 parent 5df9ccc commit 472ab5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry_sdk/integrations/opentelemetry/sampler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def should_sample(
136136
},
137137
"parent_sampled": get_parent_sampled(parent_span_context, trace_id),
138138
}
139+
sampling_context.update(attributes)
139140
sample_rate = client.options["traces_sampler"](sampling_context)
140141

141142
else:

0 commit comments

Comments
 (0)