Sha256: bcb125fb3d22b81945533d6cf14a004062faaa6498297aea3e98f04a06eeaeba
Contents?: true
Size: 586 Bytes
Versions: 7
Compression:
Stored size: 586 Bytes
Contents
# frozen_string_literal: true # Copyright 2020 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
7 entries across 7 versions & 1 rubygems