lib/new_relic/agent/instrumentation/bunny/instrumentation.rb in newrelic_rpm-9.0.0 vs lib/new_relic/agent/instrumentation/bunny/instrumentation.rb in newrelic_rpm-9.1.0

- old
+ new

@@ -44,11 +44,11 @@ reply_to: opts[:reply_to], correlation_id: opts[:correlation_id], exchange_type: type ) rescue => e - NewRelic::Agent.logger.error("Error starting message broker segment in Bunny::Exchange#publish", e) + NewRelic::Agent.logger.error('Error starting message broker segment in Bunny::Exchange#publish', e) yield else NewRelic::Agent::Tracer.capture_segment_error(segment) do yield end @@ -88,11 +88,11 @@ exchange_type: exch_type, queue_name: name, start_time: t0 ) rescue => e - NewRelic::Agent.logger.error("Error starting message broker segment in Bunny::Queue#pop", e) + NewRelic::Agent.logger.error('Error starting message broker segment in Bunny::Queue#pop', e) else if bunny_error segment.notice_error(bunny_error) raise bunny_error end @@ -111,10 +111,10 @@ library: LIBRARY, destination_type: type, destination_name: name ) rescue => e - NewRelic::Agent.logger.error("Error starting message broker segment in Bunny::Queue#purge", e) + NewRelic::Agent.logger.error('Error starting message broker segment in Bunny::Queue#purge', e) yield else NewRelic::Agent::Tracer.capture_segment_error(segment) do yield end