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 006cd39 commit f49fbc3Copy full SHA for f49fbc3
docs/platforms/python/tracing/configure-sampling/index__v3.x.mdx
@@ -100,7 +100,7 @@ def traces_sampler(sampling_context: SamplingContext) -> float:
100
101
# Sample more transactions if there are recent errors
102
# Note: hasRecentErrors is a custom attribute that needs to be set
103
- if sampling_context["hasRecentErrors"] is True:
+ if sampling_context.get("hasRecentErrors") is True:
104
return 0.8
105
106
# Sample based on environment
0 commit comments