lib/opentelemetry/instrumentation/sidekiq/instrumentation.rb in opentelemetry-instrumentation-sidekiq-0.20.2 vs lib/opentelemetry/instrumentation/sidekiq/instrumentation.rb in opentelemetry-instrumentation-sidekiq-0.21.0
- old
+ new
@@ -25,21 +25,21 @@
compatible do
gem_version >= MINIMUM_VERSION
end
- option :span_naming, default: :queue, validate: ->(opt) { %I[job_class queue].include?(opt) }
- option :propagation_style, default: :link, validate: ->(opt) { %i[link child none].include?(opt) }
+ option :span_naming, default: :queue, validate: %I[job_class queue]
+ option :propagation_style, default: :link, validate: %i[link child none]
option :trace_launcher_heartbeat, default: false, validate: :boolean
option :trace_poller_enqueue, default: false, validate: :boolean
option :trace_poller_wait, default: false, validate: :boolean
option :trace_processor_process_one, default: false, validate: :boolean
option :peer_service, default: nil, validate: :string
private
def gem_version
- Gem.loaded_specs['sidekiq'].version
+ Gem::Version.new(::Sidekiq::VERSION)
end
def require_dependencies
require_relative 'middlewares/client/tracer_middleware'
require_relative 'middlewares/server/tracer_middleware'