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 caab3ce commit f22283dCopy full SHA for f22283d
sentry_sdk/integrations/opentelemetry/sampler.py
@@ -59,6 +59,9 @@ def get_parent_sample_rate(parent_context, trace_id):
59
60
if is_span_context_valid and parent_context.trace_id == trace_id:
61
parent_sample_rate = parent_context.trace_state.get(TRACESTATE_SAMPLE_RATE_KEY)
62
+ if parent_sample_rate is None:
63
+ return None
64
+
65
try:
66
return float(parent_sample_rate)
67
except Exception:
0 commit comments