diff --git a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md index 0deac366e7f..490e10da69d 100644 --- a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md +++ b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md @@ -169,6 +169,7 @@ Experimental features might be changed or removed without prior notice. | `flameGraphItemCollapsing` | Allow collapsing of flame graph items | | `pluginsSkipHostEnvVars` | Disables passing host environment variable to plugin processes | | `tableSharedCrosshair` | Enables shared crosshair in table panel | +| `enablePluginsTracingByDefault` | Enable plugin tracing for all external plugins | ## Development feature toggles diff --git a/packages/grafana-data/src/types/featureToggles.gen.ts b/packages/grafana-data/src/types/featureToggles.gen.ts index bfe5b6a2dab..a767ba54f49 100644 --- a/packages/grafana-data/src/types/featureToggles.gen.ts +++ b/packages/grafana-data/src/types/featureToggles.gen.ts @@ -171,4 +171,5 @@ export interface FeatureToggles { alertStateHistoryAnnotationsFromLoki?: boolean; lokiQueryHints?: boolean; alertingPreviewUpgrade?: boolean; + enablePluginsTracingByDefault?: boolean; } diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index 5263799d480..a72c9e72209 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -1297,5 +1297,13 @@ var ( RequiresRestart: true, Created: time.Date(2024, time.January, 3, 12, 0, 0, 0, time.UTC), }, + { + Name: "enablePluginsTracingByDefault", + Description: "Enable plugin tracing for all external plugins", + FrontendOnly: false, + Stage: FeatureStageExperimental, + Owner: grafanaPluginsPlatformSquad, + Created: time.Date(2024, time.January, 9, 12, 0, 0, 0, time.UTC), + }, } ) diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index 66b35a6fa34..ee82fd41147 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -152,3 +152,4 @@ displayAnonymousStats,GA,@grafana/identity-access-team,2023-11-29,false,false,fa alertStateHistoryAnnotationsFromLoki,experimental,@grafana/alerting-squad,2023-11-30,false,false,true,false lokiQueryHints,GA,@grafana/observability-logs,2023-12-18,false,false,false,true alertingPreviewUpgrade,experimental,@grafana/alerting-squad,2024-01-03,false,false,true,false +enablePluginsTracingByDefault,experimental,@grafana/plugins-platform-backend,2024-01-09,false,false,false,false diff --git a/pkg/services/featuremgmt/toggles_gen.go b/pkg/services/featuremgmt/toggles_gen.go index 94121367c71..2a4db299416 100644 --- a/pkg/services/featuremgmt/toggles_gen.go +++ b/pkg/services/featuremgmt/toggles_gen.go @@ -618,4 +618,8 @@ const ( // FlagAlertingPreviewUpgrade // Show Unified Alerting preview and upgrade page in legacy alerting FlagAlertingPreviewUpgrade = "alertingPreviewUpgrade" + + // FlagEnablePluginsTracingByDefault + // Enable plugin tracing for all external plugins + FlagEnablePluginsTracingByDefault = "enablePluginsTracingByDefault" )