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 2acef08 commit eb2df70Copy full SHA for eb2df70
sentry_sdk/integrations/opentelemetry/sampler.py
@@ -123,7 +123,10 @@ def should_sample(
123
# Explicit sampled value provided at start_span
124
if attributes.get(SentrySpanAttribute.CUSTOM_SAMPLED) is not None:
125
sample_rate = float(attributes[SentrySpanAttribute.CUSTOM_SAMPLED])
126
- return sampled_result(parent_span_context, attributes, sample_rate)
+ if sample_rate > 0:
127
+ return sampled_result(parent_span_context, attributes, sample_rate)
128
+ else:
129
+ return dropped_result(parent_span_context, attributes)
130
131
sample_rate = None
132
0 commit comments