Module: NewRelic::Agent::Instrumentation::PumaStats::StatsObjectRegistration
- Defined in:
- lib/new_relic/agent/instrumentation/puma.rb
Overview
Intercepts Puma.stats_object= to install when a launcher registers
its runner. super runs Puma's own assignment unguarded; only the
agent reaction is rescued, so an agent-side failure cannot escape
into Puma's launcher boot.
Instance Method Summary collapse
-
#stats_object=(runner) ⇒ Object
:nodoc:.
Instance Method Details
#stats_object=(runner) ⇒ Object
:nodoc:
83 84 85 86 87 88 89 90 |
# File 'lib/new_relic/agent/instrumentation/puma.rb', line 83 def stats_object=(runner) super begin NewRelic::Agent::Instrumentation::PumaStats.install_on_register(runner) rescue => e NewRelic::Agent.logger.error('Error installing New Relic Puma stats instrumentation on runner registration', e) end end |