Sha256: 85c21f03dbf7036704f18d878a0390bcc5a50c2ae51297ff9ab1b6de44ce463b
Contents?: true
Size: 1.06 KB
Versions: 12
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module Instrumentation module Sidekiq module Patches # The Launcher module contains the instrumentation for the Sidekiq heartbeat module Launcher private def ❤ # rubocop:disable Naming/MethodName, Naming/AsciiIdentifiers if instrumentation_config[:trace_launcher_heartbeat] attributes = {} 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 def tracer Sidekiq::Instrumentation.instance.tracer end def instrumentation_config Sidekiq::Instrumentation.instance.config end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems