Sha256: 06e8265617c58ac6bdb41f8186257f3221042cffc3894709dd450bc034e7a888
Contents?: true
Size: 544 Bytes
Versions: 2
Compression:
Stored size: 544 Bytes
Contents
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 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddtrace-1.10.1 | lib/datadog/tracing/contrib/active_job/log_injection.rb |
ddtrace-1.10.0 | lib/datadog/tracing/contrib/active_job/log_injection.rb |