From d8c3ec994acff1bca737c8f48b4b9a6d8c8394bf Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 12 Dec 2025 16:05:46 +0000 Subject: [PATCH] feat: Add assistantStreaming feature toggle Co-authored-by: ben.sully --- .../configure-grafana/feature-toggles/index.md | 1 + .../grafana-data/src/types/featureToggles.gen.ts | 5 +++++ pkg/services/featuremgmt/registry.go | 7 +++++++ pkg/services/featuremgmt/toggles_gen.csv | 1 + pkg/services/featuremgmt/toggles_gen.go | 4 ++++ pkg/services/featuremgmt/toggles_gen.json | 13 +++++++++++++ 6 files changed, 31 insertions(+) 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 b80fa49f815..73c154002a5 100644 --- a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md +++ b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md @@ -96,6 +96,7 @@ Most [generally available](https://grafana.com/docs/release-life-cycle/#general- | `azureMonitorLogsBuilderEditor` | Enables the logs builder mode for the Azure Monitor data source | | `localeFormatPreference` | Specifies the locale so the correct format for numbers and dates can be shown | | `logsPanelControls` | Enables a control component for the logs panel in Explore | +| `assistantStreaming` | Enables streaming functionality for Grafana Assistant | | `interactiveLearning` | Enables the interactive learning app | | `newVizSuggestions` | Enable new visualization suggestions | | `preventPanelChromeOverflow` | Restrict PanelChrome contents with overflow: hidden; | diff --git a/packages/grafana-data/src/types/featureToggles.gen.ts b/packages/grafana-data/src/types/featureToggles.gen.ts index 4aeb394b81f..09abdb1ded1 100644 --- a/packages/grafana-data/src/types/featureToggles.gen.ts +++ b/packages/grafana-data/src/types/featureToggles.gen.ts @@ -937,6 +937,11 @@ export interface FeatureToggles { */ grafanaAssistantInProfilesDrilldown?: boolean; /** + * Enables streaming functionality for Grafana Assistant + * @default true + */ + assistantStreaming?: boolean; + /** * Enables creating alerts from Tempo data source */ tempoAlerting?: boolean; diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index c1b318c97b4..27561b772fb 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -1546,6 +1546,13 @@ var ( FrontendOnly: true, Expression: "true", }, + { + Name: "assistantStreaming", + Description: "Enables streaming functionality for Grafana Assistant", + Stage: FeatureStagePublicPreview, + Owner: grafanaAppPlatformSquad, + Expression: "true", // enabled by default + }, { Name: "tempoAlerting", Description: "Enables creating alerts from Tempo data source", diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index f05b0d41da3..0b77404f212 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -212,6 +212,7 @@ unifiedNavbars,GA,@grafana/plugins-platform-backend,false,false,true logsPanelControls,preview,@grafana/observability-logs,false,false,true metricsFromProfiles,experimental,@grafana/observability-traces-and-profiling,false,false,true grafanaAssistantInProfilesDrilldown,GA,@grafana/observability-traces-and-profiling,false,false,true +assistantStreaming,preview,@grafana/grafana-app-platform-squad,false,false,false tempoAlerting,experimental,@grafana/observability-traces-and-profiling,false,false,false pluginsAutoUpdate,experimental,@grafana/plugins-platform-backend,false,false,false alertingListViewV2PreviewToggle,privatePreview,@grafana/alerting-squad,false,false,true diff --git a/pkg/services/featuremgmt/toggles_gen.go b/pkg/services/featuremgmt/toggles_gen.go index 6e106fd9950..d85247cec9e 100644 --- a/pkg/services/featuremgmt/toggles_gen.go +++ b/pkg/services/featuremgmt/toggles_gen.go @@ -614,6 +614,10 @@ const ( // use multi-tenant path for awsTempCredentials FlagMultiTenantTempCredentials = "multiTenantTempCredentials" + // FlagAssistantStreaming + // Enables streaming functionality for Grafana Assistant + FlagAssistantStreaming = "assistantStreaming" + // FlagTempoAlerting // Enables creating alerts from Tempo data source FlagTempoAlerting = "tempoAlerting" diff --git a/pkg/services/featuremgmt/toggles_gen.json b/pkg/services/featuremgmt/toggles_gen.json index 561ffd562ca..6a879cb7b4e 100644 --- a/pkg/services/featuremgmt/toggles_gen.json +++ b/pkg/services/featuremgmt/toggles_gen.json @@ -645,6 +645,19 @@ "frontend": true } }, + { + "metadata": { + "name": "assistantStreaming", + "resourceVersion": "1765555492103", + "creationTimestamp": "2025-12-12T16:04:52Z" + }, + "spec": { + "description": "Enables streaming functionality for Grafana Assistant", + "stage": "preview", + "codeowner": "@grafana/grafana-app-platform-squad", + "expression": "true" + } + }, { "metadata": { "name": "authZGRPCServer",