Sha256: 058bb077dfbb35ed871b8fd9c5e87de31b8909488e2fabb10383dee82d402f57

Contents?: true

Size: 629 Bytes

Versions: 12

Compression:

Stored size: 629 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
        install do |_config|
          require_dependencies
        end

        present do
          defined?(::ActiveSupport)
        end

        private

        def require_dependencies
          require_relative 'span_subscriber'
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
opentelemetry-instrumentation-active_support-0.4.4 lib/opentelemetry/instrumentation/active_support/instrumentation.rb
opentelemetry-instrumentation-active_support-0.4.3 lib/opentelemetry/instrumentation/active_support/instrumentation.rb
opentelemetry-instrumentation-active_support-0.4.2 lib/opentelemetry/instrumentation/active_support/instrumentation.rb
opentelemetry-instrumentation-active_support-0.4.1 lib/opentelemetry/instrumentation/active_support/instrumentation.rb
opentelemetry-instrumentation-active_support-0.4.0 lib/opentelemetry/instrumentation/active_support/instrumentation.rb
opentelemetry-instrumentation-active_support-0.3.0 lib/opentelemetry/instrumentation/active_support/instrumentation.rb
opentelemetry-instrumentation-active_support-0.2.2 lib/opentelemetry/instrumentation/active_support/instrumentation.rb
opentelemetry-instrumentation-active_support-0.2.1 lib/opentelemetry/instrumentation/active_support/instrumentation.rb
opentelemetry-instrumentation-active_support-0.2.0 lib/opentelemetry/instrumentation/active_support/instrumentation.rb
opentelemetry-instrumentation-active_support-0.1.2 lib/opentelemetry/instrumentation/active_support/instrumentation.rb
opentelemetry-instrumentation-active_support-0.1.1 lib/opentelemetry/instrumentation/active_support/instrumentation.rb
opentelemetry-instrumentation-active_support-0.1.0 lib/opentelemetry/instrumentation/active_support/instrumentation.rb