lib/opentelemetry/instrumentation/sidekiq/patches/poller.rb in opentelemetry-instrumentation-sidekiq-0.23.0 vs lib/opentelemetry/instrumentation/sidekiq/patches/poller.rb in opentelemetry-instrumentation-sidekiq-0.24.0
- old
+ new
@@ -11,10 +11,10 @@
# The Poller module contains instrumentation for the enqueue and wait methods
module Poller
def enqueue
if instrumentation_config[:trace_poller_enqueue]
attributes = {}
- attributes['peer.service'] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service]
+ attributes[SemanticConventions::Trace::PEER_SERVICE] = instrumentation_config[:peer_service] if instrumentation_config[:peer_service]
tracer.in_span('Sidekiq::Scheduled::Poller#enqueue', attributes: attributes) { super }
else
OpenTelemetry::Common::Utilities.untraced { super }
end
end