lib/opentelemetry/instrumentation/sidekiq/patches/launcher.rb in opentelemetry-instrumentation-sidekiq-0.23.0 vs lib/opentelemetry/instrumentation/sidekiq/patches/launcher.rb in opentelemetry-instrumentation-sidekiq-0.24.0

- old
+ new

@@ -13,10 +13,10 @@ private def ❤ # rubocop:disable Naming/MethodName, Naming/AsciiIdentifiers if instrumentation_config[:trace_launcher_heartbeat] 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::Launcher#heartbeat', attributes: attributes) { super } else OpenTelemetry::Common::Utilities.untraced { super } end end