4f4de36cac
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.
13 lines
238 B
Ruby
13 lines
238 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Peek
|
|
module Views
|
|
class Tracing < View
|
|
def results
|
|
tracing_url = Labkit::Tracing.tracing_url(Gitlab.process_name)
|
|
|
|
{ tracing_url: tracing_url }
|
|
end
|
|
end
|
|
end
|
|
end
|