[9.2.x] Instrumentation: Log plugin and datasource info for each plugin request. (#59882)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist
2022-12-06 16:11:09 +01:00
committed by GitHub
parent b221e8cac9
commit 8c15be99f5
9 changed files with 72 additions and 25 deletions
@@ -76,10 +76,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 := &fakeTracer{}
@@ -119,7 +120,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) {