class NewRelic::Rack::AgentMiddleware

Attributes

category[R]
target[R]
transaction_options[R]

Public Class Methods

new(app, options = {}) click to toggle source
# File lib/new_relic/rack/agent_middleware.rb, line 16
def initialize(app, options = {})
  @app = app
  @category = :middleware
  @target = self
  @transaction_options = {
    :transaction_name => build_transaction_name
  }
end

Public Instance Methods

build_transaction_name() click to toggle source
# File lib/new_relic/rack/agent_middleware.rb, line 25
def build_transaction_name
  prefix = ::NewRelic::Agent::Instrumentation::ControllerInstrumentation::TransactionNamer.prefix_for_category(nil, @category)
  "#{prefix}#{self.class.name}/call"
end