Skip to content

Pass Correlation-Ids down to backend systems

Andrew Newdigate requested to merge correlators into master

Please review !316 (merged) as a precursor to this MR.

This change handles propagation of correlation ids to the following backend systems:

  1. Gitaly via GRPC
  2. Preauth (Unicorn)
  3. Request proxy (Unicorn)

It also refactor's the correlation code a little, putting it in its own package, with the intention that this package will move out of this repository in future (as it will need to be shared with other systems including Gitaly). While this is a plan, this change does not add any unnecessary technical debt in the event that we do not follow though with it.

How does it work

  1. Outbound HTTP requests will add a X-Request-Id header
  2. Outbound GRPC requests will add a X-GitLab-Correlation-ID metadata
Edited by Andrew Newdigate

Merge request reports