Sha256: e482e3d2749545e6151c8a98cc768e4850b0d82d5881ed0f9c633d90c9a1e352
Contents?: true
Size: 972 Bytes
Versions: 8
Compression:
Stored size: 972 Bytes
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 if config[:trace_launcher_heartbeat] attributes = {} attributes['peer.service'] = config[:peer_service] if 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 config Sidekiq::Instrumentation.instance.config end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems