Module: Skylight::Probes::ActiveJob::Instrumentation Private

Defined in:
lib/skylight/probes/active_job.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#executeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



7
8
9
10
11
12
13
14
15
# File 'lib/skylight/probes/active_job.rb', line 7

def execute(*)
  Skylight.trace(TITLE, "app.job.execute", component: :worker) do |trace|
    # See normalizers/active_job/perform for endpoint/segment assignment
    super
  rescue Exception
    trace.segment = "error" if trace
    raise
  end
end