datasources: querier: add user to query (#109917)

This commit is contained in:
Gábor Farkas
2025-09-03 09:29:26 +02:00
committed by GitHub
parent cb77e97996
commit 0bfec936b3
2 changed files with 19 additions and 2 deletions
+7 -1
View File
@@ -234,7 +234,13 @@ func QueryData(ctx context.Context, log log.Logger, dscache datasources.CacheSer
headers: headers,
concurrentQueryLimit: 16, // TODO: make it configurable
}
return s.QueryDataNew(ctx, nil, false, reqDTO)
user, err := identity.GetRequester(ctx)
if err != nil {
return nil, err
}
return s.QueryDataNew(ctx, user, false, reqDTO)
}
// handleExpressions handles queries when there is an expression.