Class: RailsCloudTasks::Instrumentation::NewRelic
- Inherits:
-
Object
- Object
- RailsCloudTasks::Instrumentation::NewRelic
- Defined in:
- lib/rails_cloud_tasks/instrumentation/new_relic.rb
Instance Method Summary collapse
- #add_custom_attributes(custom_attributes) ⇒ Object
- #agent ⇒ Object
- #transaction_name!(opts) ⇒ Object
Instance Method Details
#add_custom_attributes(custom_attributes) ⇒ Object
8 9 10 |
# File 'lib/rails_cloud_tasks/instrumentation/new_relic.rb', line 8 def add_custom_attributes(custom_attributes) agent.add_custom_attributes(custom_attributes) end |
#agent ⇒ Object
12 13 14 |
# File 'lib/rails_cloud_tasks/instrumentation/new_relic.rb', line 12 def agent @agent ||= ::NewRelic::Agent end |
#transaction_name!(opts) ⇒ Object
4 5 6 |
# File 'lib/rails_cloud_tasks/instrumentation/new_relic.rb', line 4 def transaction_name!(opts) agent.set_transaction_name(*opts) end |