summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/performance_bar/components
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2019-02-04 14:44:51 +0200
committerAndrew Newdigate <andrew@gitlab.com>2019-02-08 14:08:31 +0200
commit48bcd5248f6c1e8471393fe07ed043c4fefcb7e2 (patch)
tree99d907f6dc6f322d59af528301a889f6bb66b443 /app/assets/javascripts/performance_bar/components
parentc48f29c15989d260ccb72d3e4bf5973a5e0f2d25 (diff)
downloadgitlab-ce-48bcd5248f6c1e8471393fe07ed043c4fefcb7e2.tar.gz
Provide a performance bar link to the Jaeger UIan-peek-jaeger
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.
Diffstat (limited to 'app/assets/javascripts/performance_bar/components')
-rw-r--r--app/assets/javascripts/performance_bar/components/performance_bar_app.vue7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/performance_bar/components/performance_bar_app.vue b/app/assets/javascripts/performance_bar/components/performance_bar_app.vue
index 74faa35358d..1ec2784cc5a 100644
--- a/app/assets/javascripts/performance_bar/components/performance_bar_app.vue
+++ b/app/assets/javascripts/performance_bar/components/performance_bar_app.vue
@@ -134,6 +134,13 @@ export default {
>ms / <span title="Invoke Count">{{ currentRequest.details.gc.invokes }}</span> gc
</span>
</div>
+ <div
+ v-if="currentRequest.details && currentRequest.details.tracing"
+ id="peek-view-trace"
+ class="view"
+ >
+ <a :href="currentRequest.details.tracing.tracing_url"> trace </a>
+ </div>
<request-selector
v-if="currentRequest"
:current-request="currentRequest"