Class: Honeybadger::Plugins::Sidekiq::ClientMiddlewareInstrumentation Private

Inherits:
Object
  • Object
show all
Includes:
InstrumentationHelper
Defined in:
lib/honeybadger/plugins/sidekiq.rb

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

Instance Method Summary collapse

Methods included from InstrumentationHelper

#decrement_counter, #extract_attributes, #extract_callable, #gauge, #histogram, #increment_counter, #metric_agent, #metric_attributes, #metric_instrumentation, #metric_source, #monotonic_timer, #time

Instance Method Details

#call(worker, msg, queue, _redis) ⇒ Object

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.



56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/honeybadger/plugins/sidekiq.rb', line 56

def call(worker, msg, queue, _redis)
  context = {
    worker: msg["wrapped"] || msg["class"],
    queue: queue
  }

  if Honeybadger.config.load_plugin_insights_events?(:sidekiq)
    Honeybadger.event('enqueue.sidekiq', context)
  end

  yield
end