Sha256: cacc961d927a23c38ca8fbb2787f52552e67aa78c201864dbbccbadda14a852d
Contents?: true
Size: 622 Bytes
Versions: 35
Compression:
Stored size: 622 Bytes
Contents
# frozen_string_literal: true module Datadog module Tracing module Contrib module ActiveJob # Active Job log injection wrapped around job execution module LogInjection def self.included(base) base.class_eval do around_perform do |_, block| if Datadog.configuration.tracing.log_injection && logger.respond_to?(:tagged) logger.tagged(Tracing.log_correlation, &block) else block.call end end end end end end end end end
Version data entries
35 entries across 35 versions & 2 rubygems