Skip to content

Commit

Permalink
Fix UI route to match on pattern (observatorium#568)
Browse files Browse the repository at this point in the history
Signed-off-by: Saswata Mukherjee <[email protected]>
  • Loading branch information
saswatamcode committed Sep 11, 2023
1 parent fd44a14 commit c43664e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/metrics/v1/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func NewHandler(endpoints Endpoints, upstreamCA []byte, upstreamCert *stdtls.Cer
r.Group(func(r chi.Router) {
r.Use(c.uiMiddlewares...)
r.Use(server.StripTenantPrefix("/api/metrics/v1"))
r.Handle(UIRoute,
r.Mount(UIRoute,
otelhttp.WithRouteTag(
c.spanRoutePrefix+UIRoute,
server.InjectLabelsCtx(
Expand Down

0 comments on commit c43664e

Please sign in to comment.