We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9b5998 commit 8d3bfceCopy full SHA for 8d3bfce
sentry_sdk/integrations/opentelemetry/sampler.py
@@ -196,7 +196,9 @@ def should_sample(
196
parent_sample_rate = get_parent_sample_rate(parent_span_context, trace_id)
197
if parent_sampled is not None:
198
sample_rate = bool(parent_sampled)
199
- sample_rate_to_propagate = parent_sample_rate
+ sample_rate_to_propagate = (
200
+ parent_sample_rate if parent_sample_rate else sample_rate
201
+ )
202
else:
203
# Check if there is a traces_sample_rate
204
sample_rate = client.options.get("traces_sample_rate")
0 commit comments