diff --git a/instrumentation/bunny/lib/opentelemetry/instrumentation/bunny/patch_helpers.rb b/instrumentation/bunny/lib/opentelemetry/instrumentation/bunny/patch_helpers.rb index b470f57a2..043a17569 100644 --- a/instrumentation/bunny/lib/opentelemetry/instrumentation/bunny/patch_helpers.rb +++ b/instrumentation/bunny/lib/opentelemetry/instrumentation/bunny/patch_helpers.rb @@ -19,12 +19,12 @@ def self.with_send_span(channel, tracer, exchange, routing_key, &block) tracer.in_span("#{destination} publish", attributes: attributes, kind: :producer, &block) end - def self.with_process_span(channel, tracer, delivery_info, properties, &block) # rubocop:disable Style/ArgumentsForwarding + def self.with_process_span(channel, tracer, delivery_info, properties, &block) destination = destination_name(delivery_info[:exchange], delivery_info[:routing_key]) parent_context, links = extract_context(properties) OpenTelemetry::Context.with_current(parent_context) do - tracer.in_span("#{destination} process", links: links, kind: :consumer, &block) # rubocop:disable Style/ArgumentsForwarding + tracer.in_span("#{destination} process", links: links, kind: :consumer, &block) end end