lib/opentelemetry/instrumentation/resque/instrumentation.rb in opentelemetry-instrumentation-resque-0.1.3 vs lib/opentelemetry/instrumentation/resque/instrumentation.rb in opentelemetry-instrumentation-resque-0.2.0
- old
+ new
@@ -16,11 +16,11 @@
present do
defined?(::Resque)
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]
private
def patch
::Resque.prepend(Patches::ResqueModule)