gitlab-org--gitlab-foss/config/initializers/correlation_id.rb
Kamil Trzciński 39c1731a53 Log and pass correlation-id between Unicorn, Sidekiq and Gitaly
The Correlation ID is taken or generated from received X-Request-ID.
Then it is being passed to all executed services (sidekiq workers
or gitaly calls).

The Correlation ID is logged in all structured logs as `correlation_id`.
2018-12-06 20:46:14 +01:00

3 lines
106 B
Ruby

# frozen_string_literal: true
Rails.application.config.middleware.use(Gitlab::Middleware::CorrelationId)