Sha256: a5e59d1e25f94487def0db43262c3ba589c2b3165443ab7b45711f7bc0138c71
Contents?: true
Size: 839 Bytes
Versions: 12
Compression:
Stored size: 839 Bytes
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 require 'opentelemetry' module OpenTelemetry module Instrumentation module Rails # The Instrumentation class contains logic to detect and install the Rails # instrumentation class Instrumentation < OpenTelemetry::Instrumentation::Base MINIMUM_VERSION = Gem::Version.new('6.1.0') # This gem requires the instrumentantion gems for the different # components of Rails, as a result it does not have any explicit # work to do in the install step. install { true } present { defined?(::Rails) } compatible { gem_version >= MINIMUM_VERSION } private def gem_version ::Rails.gem_version end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems