DataQuery: Track panel plugin id not type (#83091)

This commit is contained in:
Torkel Ödegaard
2024-02-21 09:38:42 +01:00
committed by GitHub
parent 0bd009fb53
commit 64e0a4282e
13 changed files with 32 additions and 32 deletions
+2 -2
View File
@@ -344,7 +344,7 @@ func (proxy *DataSourceProxy) logRequest() {
}
}
panelPluginType := proxy.ctx.Req.Header.Get("X-Panel-Plugin-Type")
panelPluginId := proxy.ctx.Req.Header.Get("X-Panel-Plugin-Id")
ctxLogger := logger.FromContext(proxy.ctx.Req.Context())
ctxLogger.Info("Proxying incoming request",
@@ -354,7 +354,7 @@ func (proxy *DataSourceProxy) logRequest() {
"datasource", proxy.ds.Type,
"uri", proxy.ctx.Req.RequestURI,
"method", proxy.ctx.Req.Method,
"panelPluginType", panelPluginType,
"panelPluginId", panelPluginId,
"body", body)
}