Class: RailsCloudTasks::Instrumentation::NewRelic

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_cloud_tasks/instrumentation/new_relic.rb

Instance Method Summary collapse

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

#agentObject



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