Skip to content

Commit a95ea28

Browse files
committed
also update in included example
1 parent f49fbc3 commit a95ea28

File tree

1 file changed

+1
-1
lines changed
  • platform-includes/performance/traces-sampler-as-sampler

1 file changed

+1
-1
lines changed

platform-includes/performance/traces-sampler-as-sampler/python.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def traces_sampler(sampling_context: SamplingContext) -> float:
66
# Use the parent sampling decision if we have an incoming trace.
77
# Note: we strongly recommend respecting the parent sampling decision,
88
# as this ensures your traces will be complete!
9-
parent_sampling_decision = sampling_context.get("parent_sampled")
9+
parent_sampling_decision = sampling_context["parent_sampled"]
1010
if parent_sampling_decision is not None:
1111
return float(parent_sampling_decision)
1212

0 commit comments

Comments
 (0)