module NewRelic::Agent::Instrumentation::Sinatra::Build::Chain

Public Class Methods

build(*args, &block)
Also aliased as: build_without_newrelic
Alias for: build_with_newrelic
build_with_newrelic(*args, &block) click to toggle source
# File lib/new_relic/agent/instrumentation/sinatra/chain.rb, line 42
def build_with_newrelic(*args, &block)
  build_with_tracing(*args) do
    build_without_newrelic(*args, &block)
  end
end
Also aliased as: build
build_without_newrelic(*args, &block)
Alias for: build
instrument!() click to toggle source
# File lib/new_relic/agent/instrumentation/sinatra/chain.rb, line 39
def self.instrument!
  ::Sinatra::Base.class_eval do
    class << self
      def build_with_newrelic(*args, &block)
        build_with_tracing(*args) do
          build_without_newrelic(*args, &block)
        end
      end
      alias build_without_newrelic build
      alias build build_with_newrelic
    end
  end
end