module ActiveJob::Traceable::LoggingPatch
Public Instance Methods
tag_logger(*tags) { || ... }
click to toggle source
# File lib/activejob/traceable/logging_patch.rb, line 11 def tag_logger(*tags) tags << ActiveJob::Traceable.tracing_info_getter.call.values.compact tags.flatten! if logger.respond_to?(:tagged) tags.unshift 'ActiveJob' unless logger_tagged_by_active_job? logger.tagged(*tags) { yield } else yield end end