Module NewRelic::Agent::Instrumentation::Sinatra
In: lib/new_relic/agent/instrumentation/sinatra.rb
lib/new_relic/agent/instrumentation/sinatra/ignorer.rb
lib/new_relic/agent/instrumentation/sinatra/transaction_namer.rb

NewRelic instrumentation for Sinatra applications. Sinatra actions will appear in the UI similar to controller actions, and have breakdown charts and transaction traces.

The actions in the UI will correspond to the pattern expression used to match them, not directly to full URL‘s.

Methods

Included Modules

::NewRelic::Agent::Instrumentation::ControllerInstrumentation

Classes and Modules

Module NewRelic::Agent::Instrumentation::Sinatra::ClassMethods
Module NewRelic::Agent::Instrumentation::Sinatra::Ignorer
Module NewRelic::Agent::Instrumentation::Sinatra::TransactionNamer

Public Class methods

Public Instance methods

Capture last route we‘ve seen. Will set for transaction on route_eval

If a transaction name is already set, this call will tromple over it. This is intentional, as typically passing to a separate route is like an entirely separate transaction, so we pick up the new name.

If we‘re ignored, this remains safe, since set_transaction_name care for the gating on the transaction‘s existence for us.

[Validate]