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
- INSTRUMENTATION_NAME =
'DelayedJob'
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_tracing ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/new_relic/agent/instrumentation/delayed_job/instrumentation.rb', line 36 def invoke_job_with_tracing NewRelic::Agent.record_instrumentation_invocation(INSTRUMENTATION_NAME) = { :category => NR_TRANSACTION_CATEGORY, :path => ::NewRelic::Agent::Instrumentation::DelayedJob::Naming.name_from_payload(payload_object) } perform_action_with_newrelic_trace() do yield end end |