Skip to content

Commit 8830e34

Browse files
committed
add link
1 parent 8754c5e commit 8830e34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sentry_sdk/integrations/opentelemetry/sampler.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ def dropped_result(parent_span_context, attributes, sample_rate=None, sample_ran
103103
Update the trace_state with the effective sampled, sample_rate and sample_rand,
104104
record that we dropped the event for client report purposes, and return
105105
an OTel SamplingResult with Decision.DROP.
106+
107+
See for more info about OTel sampling:
108+
https://opentelemetry-python.readthedocs.io/en/latest/sdk/trace.sampling.html
106109
"""
107110
# these will only be added the first time in a root span sampling decision
108111
# if sample_rate or sample_rand is provided, they'll be updated in trace state
@@ -150,6 +153,9 @@ def sampled_result(span_context, attributes, sample_rate=None, sample_rand=None)
150153
151154
Update the trace_state with the effective sampled, sample_rate and sample_rand,
152155
and return an OTel SamplingResult with Decision.RECORD_AND_SAMPLE.
156+
157+
See for more info about OTel sampling:
158+
https://opentelemetry-python.readthedocs.io/en/latest/sdk/trace.sampling.html
153159
"""
154160
# these will only be added the first time in a root span sampling decision
155161
# if sample_rate or sample_rand is provided, they'll be updated in trace state

0 commit comments

Comments
 (0)