Module: QueueClassicNewRelic

Includes:
NewRelic::Agent::Instrumentation::ControllerInstrumentation
Defined in:
lib/queue_classic_plus/new_relic.rb

Instance Method Summary collapse

Instance Method Details

#_perform(*args) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/queue_classic_plus/new_relic.rb', line 10

def _perform(*args)
  opts = {
    name: 'perform',
    class_name: self.name,
    category: 'OtherTransaction/QueueClassicPlus',
  }

  perform_action_with_newrelic_trace(opts) do
    if NewRelic::Agent.config[:'queue_classic_plus.capture_params']
      NewRelic::Agent.add_custom_parameters(job_arguments: args)
    end

    super
  end
end

#new_relic_keyObject



6
7
8
# File 'lib/queue_classic_plus/new_relic.rb', line 6

def new_relic_key
  "Custom/QueueClassicPlus/#{librato_key}"
end