Sha256: abef747808e8705f1b46b37da82baa40f1abbbff9a7c8948178e0f30f26266b4
Contents?: true
Size: 825 Bytes
Versions: 1
Compression:
Stored size: 825 Bytes
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module Instrumentation module ActiveSupport # The Instrumentation class contains logic to detect and install the ActiveSupport instrumentation class Instrumentation < OpenTelemetry::Instrumentation::Base MINIMUM_VERSION = Gem::Version.new('7') install do |_config| require_dependencies end present do defined?(::ActiveSupport) end compatible do gem_version >= MINIMUM_VERSION end private def gem_version ::ActiveSupport.version end def require_dependencies require_relative 'span_subscriber' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opentelemetry-instrumentation-active_support-0.8.0 | lib/opentelemetry/instrumentation/active_support/instrumentation.rb |