Sha256: f9d0d2af042480dc0c709102faad2d2b3da62279b290316eed78052a279ae599
Contents?: true
Size: 956 Bytes
Versions: 4
Compression:
Stored size: 956 Bytes
Contents
# typed: false require 'ddtrace/contrib/active_job/events/discard' require 'ddtrace/contrib/active_job/events/enqueue' require 'ddtrace/contrib/active_job/events/enqueue_at' require 'ddtrace/contrib/active_job/events/enqueue_retry' require 'ddtrace/contrib/active_job/events/perform' require 'ddtrace/contrib/active_job/events/retry_stopped' module Datadog module Contrib module ActiveJob # Defines collection of instrumented ActiveJob events module Events ALL = [ Events::Discard, Events::Enqueue, Events::EnqueueAt, Events::EnqueueRetry, Events::Perform, Events::RetryStopped, ].freeze module_function def all self::ALL end def subscriptions all.collect(&:subscriptions).collect(&:to_a).flatten end def subscribe! all.each(&:subscribe!) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems