Sha256: b4c8b1ab75c7a5952d1cf1a869b090105244d99e574c44688a0672539c7588e1
Contents?: true
Size: 828 Bytes
Versions: 4
Compression:
Stored size: 828 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] tracer.in_span('Sidekiq::Launcher#heartbeat') { 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
4 entries across 4 versions & 1 rubygems