Class: Hutch::Tracers::NewRelic

Inherits:
Object
  • Object
show all
Includes:
NewRelic::Agent::Instrumentation::ControllerInstrumentation
Defined in:
lib/hutch/tracers/newrelic.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ NewRelic

Returns a new instance of NewRelic.



8
9
10
# File 'lib/hutch/tracers/newrelic.rb', line 8

def initialize(klass)
  @klass = klass
end

Instance Method Details

#handle(message) ⇒ Object



12
13
14
# File 'lib/hutch/tracers/newrelic.rb', line 12

def handle(message)
  @klass.process(message)
end