Module: NewRelic::Agent::Instrumentation::DelayedJobTracer

Includes:
ControllerInstrumentation
Included in:
DelayedJobTracerPrepend
Defined in:
lib/new_relic/agent/instrumentation/delayed_job/instrumentation.rb

Constant Summary collapse

NR_TRANSACTION_CATEGORY =
'OtherTransaction/DelayedJob'.freeze

Constants included from ControllerInstrumentation

ControllerInstrumentation::NR_DEFAULT_OPTIONS, ControllerInstrumentation::NR_DO_NOT_TRACE_KEY, ControllerInstrumentation::NR_IGNORE_APDEX_KEY, ControllerInstrumentation::NR_IGNORE_ENDUSER_KEY

Instance Method Summary collapse

Methods included from ControllerInstrumentation

included, #perform_action_with_newrelic_trace

Methods included from ControllerInstrumentation::ClassMethods

#add_transaction_tracer, #already_added_transaction_tracer?, #build_method_names, #generate_argument_list, #newrelic_ignore, #newrelic_ignore_apdex, #newrelic_ignore_aspect, #newrelic_ignore_enduser, #newrelic_read_attr, #newrelic_write_attr, #parse_punctuation

Instance Method Details

#invoke_job_with_tracingObject



35
36
37
38
39
40
41
42
43
44
# File 'lib/new_relic/agent/instrumentation/delayed_job/instrumentation.rb', line 35

def invoke_job_with_tracing
  options = {
    :category => NR_TRANSACTION_CATEGORY,
    :path => ::NewRelic::Agent::Instrumentation::DelayedJob::Naming.name_from_payload(payload_object)
  }

  perform_action_with_newrelic_trace(options) do
    yield
  end
end