Method: NewRelic::Agent::Instrumentation::ControllerInstrumentation::TransactionNamer.name_for

Defined in:
lib/new_relic/agent/instrumentation/controller_instrumentation.rb

.name_for(txn, traced_obj, category, options = {}) ⇒ Object

[View source]

230
231
232
233
234
# File 'lib/new_relic/agent/instrumentation/controller_instrumentation.rb', line 230

def self.name_for(txn, traced_obj, category, options = {})
  return options[:transaction_name] if options[:transaction_name]

  "#{prefix_for_category(txn, category)}#{path_name(traced_obj, options)}"
end