diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/trace/sampling.py b/opentelemetry-sdk/src/opentelemetry/sdk/trace/sampling.py index 40e142ea1a9..f3f9bf850f1 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/trace/sampling.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/trace/sampling.py @@ -121,7 +121,7 @@ def __init__(rate): # ... class CustomSamplerFactory: @staticmethod - get_sampler(sampler_argument): + def get_sampler(sampler_argument): try: rate = float(sampler_argument) return CustomSampler(rate)