diff --git a/api/traces/v1/http.go b/api/traces/v1/http.go index 0789bd790..57d577709 100644 --- a/api/traces/v1/http.go +++ b/api/traces/v1/http.go @@ -266,9 +266,20 @@ func NewV2Handler(read *url.URL, readTemplate string, tempo, writeOTLPHttp *url. r.Group(func(r chi.Router) { r.Use(c.tempoMiddlewares...) + r.Get("/tempo/ready", c.instrument.NewHandler( + prometheus.Labels{"group": "tracesv1api", "handler": "traces"}, + tempoProxyRead)) r.Get("/tempo/api*", c.instrument.NewHandler( prometheus.Labels{"group": "tracesv1api", "handler": "traces"}, tempoProxyRead)) + // The MCP endpoint at /api/mcp uses JSON-RPC + r.Post("/tempo/api/mcp", c.instrument.NewHandler( + prometheus.Labels{"group": "tracesv1api", "handler": "traces"}, + tempoProxyRead)) + // HTTP DELETE is sent to terminate a MCP session + r.Delete("/tempo/api/mcp", c.instrument.NewHandler( + prometheus.Labels{"group": "tracesv1api", "handler": "traces"}, + tempoProxyRead)) }) }