From 48bcd5248f6c1e8471393fe07ed043c4fefcb7e2 Mon Sep 17 00:00:00 2001 From: Andrew Newdigate Date: Mon, 4 Feb 2019 14:44:51 +0200 Subject: Provide a performance bar link to the Jaeger UI Jaeger is a distributed tracing tool. This change adds a "Tracing" link to the performance bar to directly link to a current request in Jaeger. This is useful for two reasons: 1 - it provides affordance to developers that the distributed tracing tool is available, so that it can quickly be discovered. 2 - it allows developers to quickly find a specific trace without having to manually navigate to a second user-interface. --- lib/peek/views/tracing.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/peek/views/tracing.rb (limited to 'lib/peek') diff --git a/lib/peek/views/tracing.rb b/lib/peek/views/tracing.rb new file mode 100644 index 00000000000..0de32a8fdda --- /dev/null +++ b/lib/peek/views/tracing.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Peek + module Views + class Tracing < View + def results + { + tracing_url: Gitlab::Tracing.tracing_url + } + end + end + end +end -- cgit v1.2.3