Datasource API: Add config to ctx (#83386)

This commit is contained in:
Andres Martinez Gotor
2024-02-26 13:02:55 +01:00
committed by GitHub
parent 5756f365e3
commit fc8a9aad22
4 changed files with 13 additions and 2 deletions
@@ -77,6 +77,7 @@ func (r *subQueryREST) Connect(ctx context.Context, name string, opts runtime.Ob
if err != nil {
return nil, err
}
ctx = backend.WithGrafanaConfig(ctx, pluginCtx.GrafanaConfig)
return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
queries, dsRef, err := r.readQueries(req)