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 c459454 commit caab3ceCopy full SHA for caab3ce
sentry_sdk/integrations/opentelemetry/sampler.py
@@ -60,7 +60,7 @@ def get_parent_sample_rate(parent_context, trace_id):
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
try:
63
- parent_sample_rate = float(parent_sample_rate)
+ return float(parent_sample_rate)
64
except Exception:
65
return None
66
0 commit comments