lib/opentelemetry/instrumentation/bunny/patch_helpers.rb in opentelemetry-instrumentation-bunny-0.20.1 vs lib/opentelemetry/instrumentation/bunny/patch_helpers.rb in opentelemetry-instrumentation-bunny-0.21.0
- old
+ new
@@ -14,10 +14,10 @@
module PatchHelpers
def self.with_send_span(channel, tracer, exchange, routing_key, &block)
attributes = basic_attributes(channel, channel.connection, exchange, routing_key)
destination = destination_name(exchange, routing_key)
- tracer.in_span("#{destination} send", attributes: attributes, kind: :producer, &block)
+ tracer.in_span("#{destination} publish", attributes: attributes, kind: :producer, &block)
end
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)