Sha256: c7962561b60e36fd48a7ca77edbf37ee60346bdeb6a47c433baa88162f6bbe29

Contents?: true

Size: 593 Bytes

Versions: 6

Compression:

Stored size: 593 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.

require 'new_relic/control/frameworks/ruby'
module NewRelic
  class Control
    module Frameworks
      # Contains basic control logic for Sinatra
      class Sinatra < NewRelic::Control::Frameworks::Ruby
        protected

        def install_shim
          super
          ::Sinatra::Base.class_eval { include NewRelic::Agent::Instrumentation::ControllerInstrumentation::Shim }
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
newrelic_rpm-8.9.0 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-8.8.0 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-8.7.0 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-8.6.0 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-8.5.0 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-8.4.0 lib/new_relic/control/frameworks/sinatra.rb