Skip to content

Commit

Permalink
chore: Address Rubocop offenses
Browse files Browse the repository at this point in the history
Style/ArgumentsForwarding - Use shorthand syntax ... for arguments forwarding
  • Loading branch information
kaylareopelle committed Jan 16, 2024
1 parent 893ec77 commit a9e270c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ module Bunny
# For additional details around trace messaging semantics
# See https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/messaging.md#messaging-attributes
module PatchHelpers
def self.with_send_span(channel, tracer, exchange, routing_key, &block)
def self.with_send_span(channel, tracer, exchange, routing_key, ...)
attributes = basic_attributes(channel, channel.connection, exchange, routing_key)
destination = destination_name(exchange, routing_key)

tracer.in_span("#{destination} publish", attributes: attributes, kind: :producer, &block)
end

def self.with_process_span(channel, tracer, delivery_info, properties, &block)
def self.with_process_span(channel, tracer, delivery_info, properties, ...)
destination = destination_name(delivery_info[:exchange], delivery_info[:routing_key])
parent_context, links = extract_context(properties)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ def run_rspec_with_tracing
end

describe 'exports spans for examples' do
def run_example(&blk)
def run_example(...)
spans = run_rspec_with_tracing do
RSpec.describe('group one') do
instance_eval(&blk)
instance_eval(...)
end
end
spans.first
Expand Down

0 comments on commit a9e270c

Please sign in to comment.