Commit Graph

8 Commits

Author SHA1 Message Date
GitLab Bot f5a72705e4 Add latest changes from gitlab-org/gitlab@master 2021-08-04 18:09:57 +00:00
GitLab Bot ff430539d5 Add latest changes from gitlab-org/gitlab@master 2020-07-13 15:09:08 +00:00
GitLab Bot b2cb8c48c5 Add latest changes from gitlab-org/gitlab@master 2020-07-10 00:09:13 +00:00
GitLab Bot f67f18d949 Add latest changes from gitlab-org/gitlab@master 2020-07-09 18:10:09 +00:00
Andrew Newdigate 4f4de36cac Migrate correlation and tracing code to LabKit
This change is a fairly straightforward refactor to extract the tracing
and correlation-id code from the gitlab rails codebase into the new
LabKit-Ruby project.

The corresponding import into LabKit-Ruby was in
https://gitlab.com/gitlab-org/labkit-ruby/merge_requests/1

The code itself remains very similar for now.

Extracting it allows us to reuse it in other projects, such as
Gitaly-Ruby. This will give us the advantages of correlation-ids and
distributed tracing in that project too.
2019-04-18 09:57:16 +02:00
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
gfyoung c858f70d07 Enable frozen string for lib/gitlab/*.rb 2018-10-22 07:00:50 +00:00
Stan Hu 477f9ed78f Bring JsonLogger to CE
This backports a module that was in EE for Geo so that other modules
can have structured logging support.
2018-07-20 12:50:20 -07:00