mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-05 22:09:56 +08:00
Align sampling specs in SDK (#1034)
This commit is contained in:
@ -498,7 +498,7 @@ class TestDatadogSpanExporter(unittest.TestCase):
|
||||
is_remote=False,
|
||||
trace_flags=trace_api.TraceFlags(trace_api.TraceFlags.SAMPLED),
|
||||
)
|
||||
sampler = sampling.ProbabilitySampler(0.5)
|
||||
sampler = sampling.TraceIdRatioBased(0.5)
|
||||
|
||||
span = trace.Span(
|
||||
name="sampled", context=context, parent=None, sampler=sampler
|
||||
|
Reference in New Issue
Block a user