Module: NewRelic::Agent::Instrumentation::Roda::Chain
- Defined in:
- lib/new_relic/agent/instrumentation/roda/chain.rb
Class Method Summary collapse
Class Method Details
.instrument! ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/new_relic/agent/instrumentation/roda/chain.rb', line 8 def self.instrument! ::Roda.class_eval do include ::NewRelic::Agent::Instrumentation::Roda::Tracer alias_method(:_roda_handle_main_route_without_tracing, :_roda_handle_main_route) def _roda_handle_main_route(*args) _roda_handle_main_route_with_tracing(*args) do _roda_handle_main_route_without_tracing(*args) end end end end |