From 6a7e892e2ebadd7f67586f1344141745478f6927 Mon Sep 17 00:00:00 2001 From: Andreas Gerstmayr Date: Mon, 4 Nov 2024 17:46:23 +0100 Subject: [PATCH] Register missing Jaeger UI routes Without these routes, hitting refresh on the trace detail, system architecture or monitor page of Jaeger UI results in a 404. Navigating to these pages from the /search page does work without this PR, because Jaeger UI is a single-page application. But hitting refresh doesn't work without this PR. Signed-off-by: Andreas Gerstmayr --- api/traces/v1/http.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/traces/v1/http.go b/api/traces/v1/http.go index 7055b513..c0ff6811 100644 --- a/api/traces/v1/http.go +++ b/api/traces/v1/http.go @@ -184,6 +184,15 @@ func NewV2Handler(read *url.URL, readTemplate string, tempo *url.URL, writeOTLPH r.Get("/search*", c.instrument.NewHandler( prometheus.Labels{"group": "tracesv1ui", "handler": "ui"}, proxyRead)) + r.Get("/trace/*", c.instrument.NewHandler( + prometheus.Labels{"group": "tracesv1ui", "handler": "ui"}, + proxyRead)) + r.Get("/dependencies", c.instrument.NewHandler( + prometheus.Labels{"group": "tracesv1ui", "handler": "ui"}, + proxyRead)) + r.Get("/monitor", c.instrument.NewHandler( + prometheus.Labels{"group": "tracesv1ui", "handler": "ui"}, + proxyRead)) r.Get("/favicon.ico", c.instrument.NewHandler( prometheus.Labels{"group": "tracesv1ui", "handler": "ui"}, proxyRead))