From 47a2504df65c0f9103b51ed0323741154dabf2c2 Mon Sep 17 00:00:00 2001 From: Carl Vander Date: Fri, 30 Aug 2024 16:51:35 +0200 Subject: [PATCH] fix: typo in sampling docs (#4162) --- opentelemetry-sdk/src/opentelemetry/sdk/trace/sampling.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/trace/sampling.py b/opentelemetry-sdk/src/opentelemetry/sdk/trace/sampling.py index f3f9bf850f..c0b460f8c2 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/trace/sampling.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/trace/sampling.py @@ -68,10 +68,10 @@ * always_on - Sampler that always samples spans, regardless of the parent span's sampling decision. * always_off - Sampler that never samples spans, regardless of the parent span's sampling decision. - * traceidratio - Sampler that samples probabalistically based on rate. + * traceidratio - Sampler that samples probabilistically based on rate. * parentbased_always_on - (default) Sampler that respects its parent span's sampling decision, but otherwise always samples. * parentbased_always_off - Sampler that respects its parent span's sampling decision, but otherwise never samples. - * parentbased_traceidratio - Sampler that respects its parent span's sampling decision, but otherwise samples probabalistically based on rate. + * parentbased_traceidratio - Sampler that respects its parent span's sampling decision, but otherwise samples probabilistically based on rate. Sampling probability can be set with ``OTEL_TRACES_SAMPLER_ARG`` if the sampler is traceidratio or parentbased_traceidratio. Rate must be in the range [0.0,1.0]. When not provided rate will be set to 1.0 (maximum rate possible). @@ -386,7 +386,7 @@ def get_description(self): class ParentBasedTraceIdRatio(ParentBased): """ Sampler that respects its parent span's sampling decision, but otherwise - samples probabalistically based on `rate`. + samples probabilistically based on `rate`. """ def __init__(self, rate: float):