You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not able to configure sampling in OpenTelemetry::SDK.configure
getting below error
E, [2025-01-02T13:50:08.053572 #14135] ERROR -- : OpenTelemetry error: unexpected configuration error due to undefined method `sampler=' for #OpenTelemetry::SDK::Configurator:0x00007f990fd69fc0 - OpenTelemetry::SDK::ConfigurationError
Share details about your runtime
Operating system details: Mac 12
RUBY_ENGINE: "ruby"
RUBY_VERSION: "2.5.2"
OpenTelemetry::SDK.configure do |config|
config.sampler = OpenTelemetry::SDK::Trace::Samplers::TraceIdRatioBased.new(0.1)
config.use 'OpenTelemetry::Instrumentation::Rails'
end
The text was updated successfully, but these errors were encountered:
Not able to configure sampling in OpenTelemetry::SDK.configure
getting below error
E, [2025-01-02T13:50:08.053572 #14135] ERROR -- : OpenTelemetry error: unexpected configuration error due to undefined method `sampler=' for #OpenTelemetry::SDK::Configurator:0x00007f990fd69fc0 - OpenTelemetry::SDK::ConfigurationError
Share details about your runtime
Operating system details: Mac 12
RUBY_ENGINE: "ruby"
RUBY_VERSION: "2.5.2"
gem 'opentelemetry-sdk', '
> 1.1.0'> 0.20.3'gem 'opentelemetry-exporter-otlp', '
gem 'opentelemetry-instrumentation-all', '~> 0.24.0'
gem 'opentelemetry-exporter-zipkin'
require 'opentelemetry/sdk'
OpenTelemetry::SDK.configure do |config|
config.sampler = OpenTelemetry::SDK::Trace::Samplers::TraceIdRatioBased.new(0.1)
config.use 'OpenTelemetry::Instrumentation::Rails'
end
The text was updated successfully, but these errors were encountered: