lib/opentelemetry/sdk/trace/tracer_provider.rb in opentelemetry-sdk-1.2.0 vs lib/opentelemetry/sdk/trace/tracer_provider.rb in opentelemetry-sdk-1.2.1

- old
+ new

@@ -162,10 +162,10 @@ end end private - def sampler_from_environment(default_sampler) # rubocop:disable Metrics/CyclomaticComplexity + def sampler_from_environment(default_sampler) case ENV['OTEL_TRACES_SAMPLER'] when 'always_on' then Samplers::ALWAYS_ON when 'always_off' then Samplers::ALWAYS_OFF when 'traceidratio' then Samplers.trace_id_ratio_based(Float(ENV.fetch('OTEL_TRACES_SAMPLER_ARG', 1.0))) when 'parentbased_always_on' then Samplers.parent_based(root: Samplers::ALWAYS_ON)