Sha256: e37d791ad47fc093e7ee2037a6b6aab6499d7950e70e91f9bcce122ca374389c

Contents?: true

Size: 585 Bytes

Versions: 14

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

# Copyright The OpenTelemetry Authors
#
# SPDX-License-Identifier: Apache-2.0

require_relative 'extensions/tracer_extension'

module OpenTelemetry
  module Instrumentation
    module Sinatra
      # The Instrumentation class contains logic to detect and install the Sinatra
      # instrumentation
      class Instrumentation < OpenTelemetry::Instrumentation::Base
        install do |_|
          ::Sinatra::Base.register Extensions::TracerExtension
        end

        present do
          defined?(::Sinatra)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
opentelemetry-instrumentation-sinatra-0.20.0 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
opentelemetry-instrumentation-sinatra-0.19.4 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
opentelemetry-instrumentation-sinatra-0.19.3 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
opentelemetry-instrumentation-sinatra-0.19.2 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
opentelemetry-instrumentation-sinatra-0.19.1 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
opentelemetry-instrumentation-sinatra-0.19.0 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
opentelemetry-instrumentation-sinatra-0.18.0 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
opentelemetry-instrumentation-sinatra-0.17.0 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
opentelemetry-instrumentation-sinatra-0.16.0 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
opentelemetry-instrumentation-sinatra-0.15.0 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
opentelemetry-instrumentation-sinatra-0.14.0 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
opentelemetry-instrumentation-sinatra-0.13.0 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
opentelemetry-instrumentation-sinatra-0.12.0 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb
opentelemetry-instrumentation-sinatra-0.11.0 lib/opentelemetry/instrumentation/sinatra/instrumentation.rb