class NewRelic::Agent::Instrumentation::ActionMailboxSubscriber

Constants

METHOD_NAME_MAPPING
PATTERN

Public Instance Methods

method_from_name(name) click to toggle source
# File lib/new_relic/agent/instrumentation/action_mailbox_subscriber.rb, line 27
def method_from_name(name)
  METHOD_NAME_MAPPING[name]
end
metric_name(name, payload) click to toggle source
# File lib/new_relic/agent/instrumentation/action_mailbox_subscriber.rb, line 11
def metric_name(name, payload)
  mailbox = payload[:mailbox].class.name
  method = method_from_name(name)
  "Ruby/ActionMailbox/#{mailbox}/#{method}"
end