From bc7c7bec167c21a9070cfe5a0dec8ea585bff09f Mon Sep 17 00:00:00 2001 From: Carl Bergquist Date: Mon, 6 Nov 2023 15:51:59 +0100 Subject: [PATCH] instrumentation: remove live endpoints from slo (#77706) Signed-off-by: bergquist --- pkg/services/live/live.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/services/live/live.go b/pkg/services/live/live.go index eb802c8b236..4017af85092 100644 --- a/pkg/services/live/live.go +++ b/pkg/services/live/live.go @@ -29,6 +29,7 @@ import ( "github.com/grafana/grafana/pkg/infra/log" "github.com/grafana/grafana/pkg/infra/usagestats" "github.com/grafana/grafana/pkg/middleware" + "github.com/grafana/grafana/pkg/middleware/requestmeta" "github.com/grafana/grafana/pkg/plugins" "github.com/grafana/grafana/pkg/services/accesscontrol" "github.com/grafana/grafana/pkg/services/annotations" @@ -333,12 +334,12 @@ func ProvideService(plugCtxProvider *plugincontext.Provider, cfg *setting.Cfg, r g.RouteRegister.Group("/api/live", func(group routing.RouteRegister) { group.Get("/ws", g.websocketHandler) - }, middleware.ReqSignedIn) + }, middleware.ReqSignedIn, requestmeta.SetSLOGroup(requestmeta.SLOGroupNone)) g.RouteRegister.Group("/api/live", func(group routing.RouteRegister) { group.Get("/push/:streamId", g.pushWebsocketHandler) group.Get("/pipeline/push/*", g.pushPipelineWebsocketHandler) - }, middleware.ReqOrgAdmin) + }, middleware.ReqOrgAdmin, requestmeta.SetSLOGroup(requestmeta.SLOGroupNone)) g.registerUsageMetrics()