Module: UmbrellioUtils::SemanticLogger::SidekiqJobMetrics

Extended by:
SidekiqJobMetrics
Included in:
SidekiqJobMetrics
Defined in:
lib/umbrellio_utils/semantic_logger/sidekiq_job_metrics.rb

Overview

Logs Sidekiq job duration, GC, GVL and allocation stats as a dedicated line. Relies on the "perform.sidekiq_job" notification published by the umbrellio fork of yabeda-sidekiq. Call subscribe! from an initializer.

Constant Summary collapse

MESSAGE =
"Sidekiq job stats"

Instance Method Summary collapse

Instance Method Details

#subscribe!Object



15
16
17
18
19
# File 'lib/umbrellio_utils/semantic_logger/sidekiq_job_metrics.rb', line 15

def subscribe!
  ActiveSupport::Notifications.subscribe("perform.sidekiq_job") do |event|
    log_event(event)
  end
end