Welcome to mirror list, hosted at ThFree Co, Russian Federation.

correlation_id_logger.rb « loggers « grape_logging « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fa4c5d86d449ab3bf111c4e7bfc62361a7bb23c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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