Skip to content

Commit f49fbc3

Browse files
committed
one more get
1 parent 006cd39 commit f49fbc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/platforms/python/tracing/configure-sampling/index__v3.x.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def traces_sampler(sampling_context: SamplingContext) -> float:
100100

101101
# Sample more transactions if there are recent errors
102102
# Note: hasRecentErrors is a custom attribute that needs to be set
103-
if sampling_context["hasRecentErrors"] is True:
103+
if sampling_context.get("hasRecentErrors") is True:
104104
return 0.8
105105

106106
# Sample based on environment

0 commit comments

Comments
 (0)