Module: Datadog::Tracing::Contrib::ActiveJob::LogInjection
- Defined in:
- lib/datadog/tracing/contrib/active_job/log_injection.rb
Overview
Active Job log injection wrapped around job execution
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/datadog/tracing/contrib/active_job/log_injection.rb', line 9 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 |