debian-mirror-gitlab/lib/gitlab/grape_logging/loggers/correlation_id_logger.rb
2018-12-23 12:14:25 +05:30

14 lines
362 B
Ruby

# frozen_string_literal: true
# This module adds additional correlation id the grape logger
module Gitlab
module GrapeLogging
module Loggers
class CorrelationIdLogger < ::GrapeLogging::Loggers::Base
def parameters(_, _)
{ Gitlab::CorrelationId::LOG_KEY => Gitlab::CorrelationId.current_id }
end
end
end
end
end