Sha256: 4c04770651d91afd22e7447de2bd7a7dca9fce249e09e234f75ae6390f80a945

Contents?: true

Size: 451 Bytes

Versions: 37

Compression:

Stored size: 451 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2021

module Instana
  module Activators
    class Sinatra < Activator
      def can_instrument?
        defined?(::Instana::Rack) && defined?(::Sinatra)
      end

      def instrument
        require 'instana/frameworks/sinatra'

        ::Sinatra::Base.use ::Instana::Rack
        ::Sinatra::Base.register ::Instana::SinatraPathTemplateExtractor

        true
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
instana-1.209.0.pre2 lib/instana/activators/sinatra.rb
instana-1.209.0.pre1 lib/instana/activators/sinatra.rb
instana-1.208.0 lib/instana/activators/sinatra.rb
instana-1.207.0 lib/instana/activators/sinatra.rb
instana-1.206.0 lib/instana/activators/sinatra.rb
instana-1.205.0 lib/instana/activators/sinatra.rb
instana-1.204.0 lib/instana/activators/sinatra.rb
instana-1.204.0.pre3 lib/instana/activators/sinatra.rb
instana-1.204.0.pre2 lib/instana/activators/sinatra.rb
instana-1.204.0.pre1 lib/instana/activators/sinatra.rb
instana-1.203.2 lib/instana/activators/sinatra.rb
instana-1.203.1 lib/instana/activators/sinatra.rb
instana-1.203.0 lib/instana/activators/sinatra.rb
instana-1.202.0 lib/instana/activators/sinatra.rb
instana-1.201.0 lib/instana/activators/sinatra.rb
instana-1.201.0.pre1 lib/instana/activators/sinatra.rb
instana-1.200.0 lib/instana/activators/sinatra.rb
instana-1.200.0.pre1 lib/instana/activators/sinatra.rb
instana-1.199.6 lib/instana/activators/sinatra.rb
instana-1.199.5 lib/instana/activators/sinatra.rb