Instrumentation: Log plugin and datasource info for each plugin request. (#54769)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist
2022-11-02 14:51:51 +01:00
committed by GitHub
parent d32a9a62b5
commit 06705a49e2
9 changed files with 72 additions and 25 deletions
@@ -73,10 +73,11 @@ func TestIntegrationPluginManager(t *testing.T) {
require.NoError(t, err)
cfg := &setting.Cfg{
Raw: raw,
StaticRootPath: staticRootPath,
BundledPluginsPath: bundledPluginsPath,
Azure: &azsettings.AzureSettings{},
Raw: raw,
StaticRootPath: staticRootPath,
BundledPluginsPath: bundledPluginsPath,
Azure: &azsettings.AzureSettings{},
IsFeatureToggleEnabled: func(_ string) bool { return false },
}
tracer := tracing.InitializeTracerForTest()
@@ -115,7 +116,7 @@ func TestIntegrationPluginManager(t *testing.T) {
verifyBundledPlugins(t, ctx, ps)
verifyPluginStaticRoutes(t, ctx, ps)
verifyBackendProcesses(t, reg.Plugins(ctx))
verifyPluginQuery(t, ctx, client.ProvideService(reg))
verifyPluginQuery(t, ctx, client.ProvideService(reg, pCfg))
}
func verifyPluginQuery(t *testing.T, ctx context.Context, c plugins.Client) {