datasources: querier: add mode-info (#113592)

* datasources: querier: add mode-info

* fixed unit test
This commit is contained in:
Gábor Farkas
2025-11-10 15:48:59 +01:00
committed by GitHub
parent 704c6a47e3
commit 2dc48c0b98
4 changed files with 11 additions and 0 deletions
+2
View File
@@ -122,6 +122,8 @@ func (r *queryREST) Connect(connectCtx context.Context, name string, _ runtime.O
b := r.builder
return http.HandlerFunc(func(w http.ResponseWriter, httpreq *http.Request) {
w.Header().Set("X-Ds-Querier", b.instanceProvider.GetMode())
ctx, span := b.tracer.Start(httpreq.Context(), "QueryService.Query")
defer span.End()
ctx = request.WithNamespace(ctx, request.NamespaceValue(connectCtx))