Plugin Instrumentation: Add target property to request logs (#91946)

* Plugin Instrumentation: Add `target` property to request logs

* remove comment

* remove error
This commit is contained in:
Sven Grossmann
2024-09-02 17:41:26 +02:00
committed by GitHub
parent 564d09c9be
commit 5ad7c47816
2 changed files with 27 additions and 15 deletions

View File

@ -175,7 +175,7 @@ func CreateMiddlewares(cfg *setting.Cfg, oAuthTokenService oauthtoken.OAuthToken
}
if cfg.PluginLogBackendRequests {
middlewares = append(middlewares, clientmiddleware.NewLoggerMiddleware(log.New("plugin.instrumentation")))
middlewares = append(middlewares, clientmiddleware.NewLoggerMiddleware(log.New("plugin.instrumentation"), registry))
}
skipCookiesNames := []string{cfg.LoginCookieName}