From 2cb8f40cdfd4c4b156f3a67778c0f5e1b6a0ef52 Mon Sep 17 00:00:00 2001 From: Kayla Reopelle Date: Thu, 25 Jan 2024 08:52:17 -0800 Subject: [PATCH] fix: Remove leftover disable directives from older version of Rubocop --- .../lib/opentelemetry/instrumentation/bunny/patch_helpers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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