mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 06:52:42 +08:00
DataSourceWithBackend: Add queryGroupId
to find correlated/related queries (#64587)
* add `correlationId` to queries * trace correlation id in backend * add correlation id to loki's span * add correlation id to query chunks * fix test * fix DataSourceWithBackend test * change to `queryGroupId` * remove empty line * fix test in `DataSourceWithBackend`
This commit is contained in:
@ -33,7 +33,7 @@ func (m *TracingHeaderMiddleware) applyHeaders(ctx context.Context, req backend.
|
||||
return
|
||||
}
|
||||
|
||||
var headersList = []string{query.HeaderPanelID, query.HeaderDashboardUID, query.HeaderDatasourceUID, `X-Grafana-Org-Id`}
|
||||
var headersList = []string{query.HeaderQueryGroupID, query.HeaderPanelID, query.HeaderDashboardUID, query.HeaderDatasourceUID, `X-Grafana-Org-Id`}
|
||||
|
||||
for _, headerName := range headersList {
|
||||
gotVal := reqCtx.Req.Header.Get(headerName)
|
||||
|
Reference in New Issue
Block a user