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 f49fbc3 commit a95ea28Copy full SHA for a95ea28
platform-includes/performance/traces-sampler-as-sampler/python.mdx
@@ -6,7 +6,7 @@ def traces_sampler(sampling_context: SamplingContext) -> float:
6
# Use the parent sampling decision if we have an incoming trace.
7
# Note: we strongly recommend respecting the parent sampling decision,
8
# as this ensures your traces will be complete!
9
- parent_sampling_decision = sampling_context.get("parent_sampled")
+ parent_sampling_decision = sampling_context["parent_sampled"]
10
if parent_sampling_decision is not None:
11
return float(parent_sampling_decision)
12
0 commit comments