Plugins: Add referer and user login params to plugin CDN redirect logs (#77942)

add referer and user
This commit is contained in:
Will Browne 2023-11-10 11:52:06 +01:00 committed by GitHub
parent da117aea1c
commit 7d2d5fbe89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -380,6 +380,8 @@ func (hs *HTTPServer) redirectCDNPluginAsset(c *contextmodel.ReqContext, plugin
"pluginVersion", plugin.Info.Version,
"assetPath", assetPath,
"remoteURL", remoteURL,
"referer", c.Req.Referer(),
"user", c.Login,
)
pluginsCDNFallbackRedirectRequests.With(prometheus.Labels{
"plugin_id": plugin.ID,