module NewRelic::Agent::Instrumentation::Hanami

Constants

NAME_REGEX

Protected Instance Methods

finish() click to toggle source
Calls superclass method
# File lib/newrelic-hanami/instrument.rb, line 15
def finish
  perform_action_with_newrelic_trace(_trace_options) do
    super
  end
end

Private Instance Methods

_trace_options() click to toggle source
# File lib/newrelic-hanami/instrument.rb, line 23
def _trace_options
  {
    category: :controller,
    name:     self.class.name.sub(NAME_REGEX, ''),
    request:  request,
    params:   params.to_h
  }
end