Class: Greenroom::Reporter::NewRelic
- Inherits:
-
Reporter
- Object
- Reporter
- Greenroom::Reporter::NewRelic
- Defined in:
- lib/greenroom/reporter/new_relic.rb
Overview
Sends recorded events to New Relic as custom events. Not required by
greenroom.rb: a host that wants this delivery requires this file on
purpose, after loading its own New Relic agent, so the gem's own runtime
dependencies never include the agent gem.
Instance Method Summary collapse
Instance Method Details
#record(event_type, attributes) ⇒ Object
11 12 13 |
# File 'lib/greenroom/reporter/new_relic.rb', line 11 def record(event_type, attributes) ::NewRelic::Agent.record_custom_event(event_type, truncate(attributes)) end |