Sha256: f55edcaa4f0dfb18aedb78914b9c17ce72ed7a69b3be97812be9db8e2c058aeb

Contents?: true

Size: 581 Bytes

Versions: 10

Compression:

Stored size: 581 Bytes

Contents

module Skylight
  module Normalizers
    module ActiveJob
      class EnqueueAt < Normalizer
        register "enqueue_at.active_job"

        CAT = "other.job.enqueue_at".freeze

        def normalize(_trace, _name, payload)
					title = "Enqueue #{payload[:job].class}"

					adapter_class_name = payload[:adapter].class.name
					adapter_name = adapter_class_name.match(/^ActiveJob::QueueAdapters::(\w+)Adapter$/)[1].underscore
					desc = "{ adapter: '#{adapter_name}', queue: '#{payload[:job].queue_name}' }"

					[ CAT, title, desc ]
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
skylight-1.6.1 lib/skylight/normalizers/active_job/enqueue_at.rb
skylight-1.6.0 lib/skylight/normalizers/active_job/enqueue_at.rb
skylight-1.5.1 lib/skylight/normalizers/active_job/enqueue_at.rb
skylight-1.5.0 lib/skylight/normalizers/active_job/enqueue_at.rb
skylight-1.4.4 lib/skylight/normalizers/active_job/enqueue_at.rb
skylight-1.4.3 lib/skylight/normalizers/active_job/enqueue_at.rb
skylight-1.4.2 lib/skylight/normalizers/active_job/enqueue_at.rb
skylight-1.4.1 lib/skylight/normalizers/active_job/enqueue_at.rb
skylight-1.4.0 lib/skylight/normalizers/active_job/enqueue_at.rb
skylight-1.4.0.beta.2 lib/skylight/normalizers/active_job/enqueue_at.rb