Sha256: d2a07a44d41cc1f65d621ee07bbb040d9275eb92fe6d1d229a0f5f039438c380
Contents?: true
Size: 982 Bytes
Versions: 4
Compression:
Stored size: 982 Bytes
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module Instrumentation module ActionView # The Instrumentation class contains logic to detect and install the ActionView instrumentation class Instrumentation < OpenTelemetry::Instrumentation::Base MINIMUM_VERSION = Gem::Version.new('6.0.0') install do |_config| require_dependencies end present do defined?(::ActionView) end compatible do gem_version >= MINIMUM_VERSION end option :disallowed_notification_payload_keys, default: [], validate: :array option :notification_payload_transform, default: nil, validate: :callable private def gem_version ::ActionView.version end def require_dependencies require_relative 'railtie' end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems