Jaeger: Enable jaegerBackendMigration feature toggle by default (#107526)

* Jaeger: Enable jaegerBackendMigration feature toggle by default

* fix test

* update old-arch test
pull/107579/head
Gareth 2 weeks ago committed by GitHub
parent 4f66c4a2a1
commit 185ce90a4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md
  2. 697
      e2e/cypress/fixtures/long-trace-response-backend.json
  3. 7592
      e2e/cypress/fixtures/long-trace-response.json
  4. 8
      e2e/old-arch/various-suite/trace-view-scrolling.spec.ts
  5. 8
      e2e/various-suite/trace-view-scrolling.spec.ts
  6. 1
      packages/grafana-data/src/types/featureToggles.gen.ts
  7. 3
      pkg/services/featuremgmt/registry.go
  8. 2
      pkg/services/featuremgmt/toggles_gen.csv
  9. 12
      pkg/services/featuremgmt/toggles_gen.json

@ -72,6 +72,7 @@ Most [generally available](https://grafana.com/docs/release-life-cycle/#general-
| `pluginsSriChecks` | Enables SRI checks for plugin assets | |
| `azureMonitorDisableLogLimit` | Disables the log limit restriction for Azure Monitor when true. The limit is enabled by default. | |
| `preinstallAutoUpdate` | Enables automatic updates for pre-installed plugins | Yes |
| `jaegerBackendMigration` | Enables querying the Jaeger data source without the proxy | Yes |
| `alertingUIOptimizeReducer` | Enables removing the reducer from the alerting UI when creating a new alert rule and using instant query | Yes |
| `azureMonitorEnableUserAuth` | Enables user auth for Azure Monitor datasource only | Yes |
| `alertingNotificationsStepMode` | Enables simplified step mode in the notifications section | Yes |

@ -0,0 +1,697 @@
{
"results": {
"A": {
"status": 200,
"frames": [
{
"schema": {
"name": "A",
"refId": "A",
"meta": {
"typeVersion": [0, 0],
"custom": {
"traceFormat": "jaeger"
},
"preferredVisualisationType": "trace"
},
"fields": [
{
"name": "traceID",
"type": "string"
},
{
"name": "spanID",
"type": "string"
},
{
"name": "parentSpanID",
"type": "string"
},
{
"name": "operationName",
"type": "string"
},
{
"name": "serviceName",
"type": "string"
},
{
"name": "startTime",
"type": "number"
},
{
"name": "duration",
"type": "number"
}
]
},
"data": {
"values": [
[
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcf6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90",
"3fa414edcef6ad90"
],
[
"0000000000000000",
"0000000000000001",
"0000000000000002",
"0000000000000003",
"0000000000000004",
"0000000000000005",
"0000000000000006",
"0000000000000007",
"0000000000000008",
"0000000000000009",
"000000000000000a",
"000000000000000b",
"000000000000000c",
"000000000000000d",
"000000000000000e",
"000000000000000f",
"0000000000000010",
"0000000000000011",
"0000000000000012",
"0000000000000013",
"0000000000000014",
"0000000000000015",
"0000000000000016",
"0000000000000017",
"0000000000000018",
"0000000000000019",
"000000000000001a",
"000000000000001b",
"000000000000001c",
"000000000000001d",
"000000000000001e",
"000000000000001f",
"0000000000000020",
"0000000000000021",
"0000000000000022",
"0000000000000023",
"0000000000000024",
"0000000000000025",
"0000000000000026",
"0000000000000027",
"0000000000000028",
"0000000000000029",
"000000000000002a",
"000000000000002b",
"000000000000002c",
"000000000000002d",
"000000000000002e",
"000000000000002f",
"0000000000000030",
"0000000000000031",
"0000000000000032",
"0000000000000033",
"0000000000000034",
"0000000000000035",
"0000000000000036",
"0000000000000037",
"0000000000000038",
"0000000000000039",
"000000000000003a",
"000000000000003b",
"000000000000003c",
"000000000000003d",
"000000000000003e",
"000000000000003f",
"0000000000000040",
"0000000000000041",
"0000000000000042",
"0000000000000043",
"0000000000000044",
"0000000000000045",
"0000000000000046",
"0000000000000047",
"0000000000000048",
"0000000000000049",
"000000000000004a",
"000000000000004b",
"000000000000004c",
"000000000000004d",
"000000000000004e",
"000000000000004f",
"0000000000000050",
"0000000000000051",
"0000000000000052",
"0000000000000053",
"0000000000000054",
"0000000000000055",
"0000000000000056",
"0000000000000057",
"0000000000000058",
"0000000000000059",
"000000000000005a",
"000000000000005b",
"000000000000005c",
"000000000000005d",
"000000000000005e",
"000000000000005f",
"0000000000000060",
"0000000000000061",
"0000000000000062",
"0000000000000063",
"0000000000000064",
"0000000000000065",
"0000000000000066",
"0000000000000067",
"0000000000000068",
"0000000000000069",
"000000000000006a",
"000000000000006b",
"000000000000006c",
"000000000000006d",
"000000000000006e",
"000000000000006f",
"0000000000000070",
"0000000000000071",
"0000000000000072",
"0000000000000073",
"0000000000000074",
"0000000000000075",
"0000000000000076",
"0000000000000077"
],
[
"",
"0000000000000000",
"0000000000000000",
"0000000000000001",
"0000000000000001",
"0000000000000002",
"0000000000000002",
"0000000000000003",
"0000000000000003",
"0000000000000004",
"0000000000000004",
"0000000000000005",
"0000000000000005",
"0000000000000006",
"0000000000000006",
"0000000000000007",
"0000000000000007",
"0000000000000008",
"0000000000000008",
"0000000000000009",
"0000000000000009",
"000000000000000a",
"000000000000000a",
"000000000000000b",
"000000000000000b",
"000000000000000c",
"000000000000000c",
"000000000000000d",
"000000000000000d",
"000000000000000e",
"000000000000000e",
"000000000000000f",
"000000000000000f",
"0000000000000010",
"0000000000000010",
"0000000000000011",
"0000000000000011",
"0000000000000012",
"0000000000000012",
"0000000000000013",
"0000000000000013",
"0000000000000014",
"0000000000000014",
"0000000000000015",
"0000000000000015",
"0000000000000016",
"0000000000000016",
"0000000000000017",
"0000000000000017",
"0000000000000018",
"0000000000000018",
"0000000000000019",
"0000000000000019",
"000000000000001a",
"000000000000001a",
"000000000000001b",
"000000000000001b",
"000000000000001c",
"000000000000001c",
"000000000000001d",
"000000000000001d",
"000000000000001e",
"000000000000001e",
"000000000000001f",
"000000000000001f",
"0000000000000020",
"0000000000000020",
"0000000000000021",
"0000000000000021",
"0000000000000022",
"0000000000000022",
"0000000000000023",
"0000000000000023",
"0000000000000024",
"0000000000000024",
"0000000000000025",
"0000000000000025",
"0000000000000026",
"0000000000000026",
"0000000000000027",
"0000000000000027",
"0000000000000028",
"0000000000000028",
"0000000000000029",
"0000000000000029",
"000000000000002a",
"000000000000002a",
"000000000000002b",
"000000000000002b",
"000000000000002c",
"000000000000002c",
"000000000000002d",
"000000000000002d",
"000000000000002e",
"000000000000002e",
"000000000000002f",
"000000000000002f",
"0000000000000030",
"0000000000000030",
"0000000000000031",
"0000000000000031",
"0000000000000032",
"0000000000000032",
"0000000000000033",
"0000000000000033",
"0000000000000034",
"0000000000000034",
"0000000000000035",
"0000000000000035",
"0000000000000036",
"0000000000000036",
"0000000000000037",
"0000000000000037",
"0000000000000038",
"0000000000000038",
"0000000000000039",
"0000000000000039",
"000000000000003a",
"000000000000003a",
"000000000000003b"
],
[
"GET /api/health",
"POST /api/login",
"GET /api/user",
"POST /api/datasources/proxy",
"GET /api/annotations",
"POST /api/search",
"GET /api/dashboards/home",
"POST /api/datasources/1/query",
"GET /api/alerts",
"POST /api/user/preferences",
"GET /api/org",
"POST /api/teams",
"GET /api/folders",
"POST /api/playlists",
"GET /api/admin/stats",
"POST /api/snapshots",
"GET /api/plugins",
"POST /api/library-elements",
"GET /api/notifications",
"POST /api/correlations",
"GET /api/access-control",
"POST /api/recording-rules",
"GET /api/provisioning",
"POST /api/short-urls",
"GET /api/live/ws",
"POST /api/alertmanager",
"GET /api/ruler",
"POST /api/prometheus",
"GET /api/datasources",
"POST /api/query-history",
"GET /api/frontend-metrics",
"POST /api/licensing",
"GET /api/service-accounts",
"POST /api/reports",
"GET /api/usage",
"POST /api/migrations",
"GET /api/connections",
"POST /api/insights",
"GET /api/expressions",
"POST /api/cloudmigration",
"GET /api/featuremgmt",
"POST /api/publicdashboards",
"GET /api/saml",
"POST /api/sso-settings",
"GET /api/keycloak",
"POST /api/oauth",
"GET /api/ldap",
"POST /api/auth",
"GET /api/licensing",
"POST /api/plugins",
"GET /database/query",
"POST /cache/set",
"GET /cache/get",
"POST /queue/enqueue",
"GET /queue/dequeue",
"POST /storage/write",
"GET /storage/read",
"POST /network/send",
"GET /network/receive",
"POST /auth/validate",
"GET /config/load",
"POST /config/save",
"GET /metrics/collect",
"POST /logs/write",
"GET /logs/read",
"POST /events/publish",
"GET /events/subscribe",
"POST /scheduler/add",
"GET /scheduler/run",
"POST /backup/create",
"GET /backup/restore",
"POST /encryption/encrypt",
"GET /encryption/decrypt",
"POST /compression/compress",
"GET /compression/decompress",
"POST /validation/validate",
"GET /template/render",
"POST /notification/send",
"GET /health/check",
"POST /deployment/deploy",
"GET /monitoring/status",
"POST /security/scan",
"GET /performance/profile",
"POST /integration/sync",
"GET /webhook/trigger",
"POST /transform/process",
"GET /audit/trail",
"POST /cleanup/execute",
"GET /discovery/scan",
"POST /migration/run",
"GET /feature/toggle",
"POST /experiment/start",
"GET /analytics/track",
"POST /feedback/submit",
"GET /support/ticket",
"POST /billing/charge",
"GET /subscription/status",
"POST /upgrade/perform",
"GET /downgrade/check",
"POST /maintenance/start",
"GET /status/overview",
"POST /workflow/execute",
"GET /pipeline/status",
"POST /container/deploy",
"GET /service/health",
"POST /load/balance",
"GET /traffic/route",
"POST /scale/adjust",
"GET /resource/allocate",
"POST /optimize/performance",
"GET /debug/trace",
"POST /troubleshoot/analyze",
"GET /repair/fix",
"POST /update/apply",
"GET /version/check",
"POST /patch/install",
"GET /rollback/prepare",
"POST /commit/save",
"GET /branch/merge",
"POST /tag/create"
],
[
"api-gateway",
"auth-service",
"user-service",
"data-proxy",
"annotation-service",
"search-service",
"dashboard-service",
"query-service",
"alert-service",
"preference-service",
"org-service",
"team-service",
"folder-service",
"playlist-service",
"admin-service",
"snapshot-service",
"plugin-service",
"library-service",
"notification-service",
"correlation-service",
"access-control",
"recording-rules",
"provisioning",
"url-shortener",
"live-service",
"alertmanager",
"ruler-service",
"prometheus",
"datasource-service",
"query-history",
"metrics-service",
"licensing",
"service-accounts",
"reports",
"usage-stats",
"migrations",
"connections",
"insights",
"expressions",
"cloud-migration",
"feature-mgmt",
"public-dashboards",
"saml-service",
"sso-settings",
"keycloak",
"oauth-service",
"ldap-service",
"auth-proxy",
"license-check",
"plugin-loader",
"database-pool",
"cache-service",
"cache-client",
"queue-manager",
"queue-worker",
"storage-engine",
"storage-client",
"network-layer",
"network-client",
"auth-validator",
"config-loader",
"config-writer",
"metrics-collector",
"log-writer",
"log-reader",
"event-publisher",
"event-subscriber",
"task-scheduler",
"job-runner",
"backup-manager",
"restore-service",
"crypto-engine",
"decrypt-service",
"compressor",
"decompressor",
"validator",
"template-engine",
"notifier",
"health-checker",
"deployer",
"monitor",
"scanner",
"profiler",
"integrator",
"webhook-handler",
"transformer",
"auditor",
"cleaner",
"discoverer",
"migrator",
"feature-flags",
"experimenter",
"tracker",
"feedback-api",
"support-api",
"billing-api",
"subscription-api",
"upgrader",
"downgrade-check",
"maintenance-mode",
"status-api",
"workflow-engine",
"pipeline-api",
"container-mgr",
"service-mesh",
"load-balancer",
"traffic-router",
"auto-scaler",
"resource-mgr",
"optimizer",
"debugger",
"troubleshooter",
"repair-tool",
"updater",
"version-api",
"patch-mgr",
"rollback-mgr",
"git-api",
"merge-api",
"tag-api"
],
[
1579270400000, 1579270401000, 1579270402000, 1579270403000, 1579270404000, 1579270405000, 1579270406000,
1579270407000, 1579270408000, 1579270409000, 1579270410000, 1579270411000, 1579270412000, 1579270413000,
1579270414000, 1579270415000, 1579270416000, 1579270417000, 1579270418000, 1579270419000, 1579270420000,
1579270421000, 1579270422000, 1579270423000, 1579270424000, 1579270425000, 1579270426000, 1579270427000,
1579270428000, 1579270429000, 1579270430000, 1579270431000, 1579270432000, 1579270433000, 1579270434000,
1579270435000, 1579270436000, 1579270437000, 1579270438000, 1579270439000, 1579270440000, 1579270441000,
1579270442000, 1579270443000, 1579270444000, 1579270445000, 1579270446000, 1579270447000, 1579270448000,
1579270449000, 1579270450000, 1579270451000, 1579270452000, 1579270453000, 1579270454000, 1579270455000,
1579270456000, 1579270457000, 1579270458000, 1579270459000, 1579270460000, 1579270461000, 1579270462000,
1579270463000, 1579270464000, 1579270465000, 1579270466000, 1579270467000, 1579270468000, 1579270469000,
1579270470000, 1579270471000, 1579270472000, 1579270473000, 1579270474000, 1579270475000, 1579270476000,
1579270477000, 1579270478000, 1579270479000, 1579270480000, 1579270481000, 1579270482000, 1579270483000,
1579270484000, 1579270485000, 1579270486000, 1579270487000, 1579270488000, 1579270489000, 1579270490000,
1579270491000, 1579270492000, 1579270493000, 1579270494000, 1579270495000, 1579270496000, 1579270497000,
1579270498000, 1579270499000, 1579270500000, 1579270501000, 1579270502000, 1579270503000, 1579270504000,
1579270505000, 1579270506000, 1579270507000, 1579270508000, 1579270509000, 1579270510000, 1579270511000,
1579270512000, 1579270513000, 1579270514000, 1579270515000, 1579270516000, 1579270517000, 1579270518000,
1579270519000
],
[
100000, 50000, 75000, 200000, 25000, 150000, 80000, 300000, 45000, 120000, 60000, 180000, 35000, 250000,
90000, 40000, 160000, 70000, 220000, 55000, 130000, 85000, 190000, 65000, 170000, 95000, 210000, 50000,
140000, 75000, 185000, 42000, 165000, 88000, 205000, 58000, 145000, 72000, 195000, 48000, 155000, 82000,
225000, 38000, 175000, 92000, 215000, 62000, 135000, 78000, 200000, 52000, 160000, 85000, 230000, 45000,
165000, 75000, 185000, 55000, 150000, 88000, 210000, 42000, 170000, 95000, 240000, 68000, 155000, 82000,
190000, 58000, 145000, 92000, 220000, 48000, 175000, 85000, 205000, 65000, 180000, 72000, 195000, 55000,
160000, 98000, 225000, 62000, 140000, 78000, 200000, 48000, 165000, 85000, 215000, 58000, 150000, 88000,
230000, 45000, 175000, 72000, 185000, 62000, 155000, 95000, 210000, 52000, 170000, 82000, 195000, 68000,
145000, 92000, 235000, 58000, 160000, 75000, 180000, 65000
]
]
}
}
]
}
}
}

File diff suppressed because it is too large Load Diff

@ -6,8 +6,12 @@ describe('Trace view', () => {
});
it('Can lazy load big traces', () => {
cy.intercept('GET', '**/api/traces/trace', {
fixture: 'long-trace-response.json',
cy.intercept('POST', '**/api/ds/query*', (req) => {
if (!req.url.includes('ds_type=jaeger')) {
return;
}
req.reply({ fixture: 'long-trace-response-backend.json' });
}).as('longTrace');
e2e.pages.Explore.visit();

@ -6,8 +6,12 @@ describe('Trace view', () => {
});
it('Can lazy load big traces', () => {
cy.intercept('GET', '**/api/traces/trace', {
fixture: 'long-trace-response.json',
cy.intercept('POST', '**/api/ds/query*', (req) => {
if (!req.url.includes('ds_type=jaeger')) {
return;
}
req.reply({ fixture: 'long-trace-response-backend.json' });
}).as('longTrace');
e2e.pages.Explore.visit();

@ -739,6 +739,7 @@ export interface FeatureToggles {
crashDetection?: boolean;
/**
* Enables querying the Jaeger data source without the proxy
* @default true
*/
jaegerBackendMigration?: boolean;
/**

@ -1264,8 +1264,9 @@ var (
{
Name: "jaegerBackendMigration",
Description: "Enables querying the Jaeger data source without the proxy",
Stage: FeatureStageExperimental,
Stage: FeatureStageGeneralAvailability,
Owner: grafanaOSSBigTent,
Expression: "true",
},
{
Name: "alertingUIOptimizeReducer",

@ -165,7 +165,7 @@ prometheusSpecialCharsInLabelValues,experimental,@grafana/oss-big-tent,false,fal
enableExtensionsAdminPage,experimental,@grafana/plugins-platform-backend,false,true,false
enableSCIM,preview,@grafana/identity-access-team,false,false,false
crashDetection,experimental,@grafana/observability-traces-and-profiling,false,false,true
jaegerBackendMigration,experimental,@grafana/oss-big-tent,false,false,false
jaegerBackendMigration,GA,@grafana/oss-big-tent,false,false,false
alertingUIOptimizeReducer,GA,@grafana/alerting-squad,false,false,true
azureMonitorEnableUserAuth,GA,@grafana/partner-datasources,false,false,false
alertingNotificationsStepMode,GA,@grafana/alerting-squad,false,false,true

1 Name Stage Owner requiresDevMode RequiresRestart FrontendOnly
165 enableExtensionsAdminPage experimental @grafana/plugins-platform-backend false true false
166 enableSCIM preview @grafana/identity-access-team false false false
167 crashDetection experimental @grafana/observability-traces-and-profiling false false true
168 jaegerBackendMigration experimental GA @grafana/oss-big-tent false false false
169 alertingUIOptimizeReducer GA @grafana/alerting-squad false false true
170 azureMonitorEnableUserAuth GA @grafana/partner-datasources false false false
171 alertingNotificationsStepMode GA @grafana/alerting-squad false false true

@ -1524,13 +1524,17 @@
{
"metadata": {
"name": "jaegerBackendMigration",
"resourceVersion": "1750434297879",
"creationTimestamp": "2024-11-15T14:40:20Z"
"resourceVersion": "1751465665226",
"creationTimestamp": "2024-11-15T14:40:20Z",
"annotations": {
"grafana.app/updatedTimestamp": "2025-07-02 14:14:25.226989 +0000 UTC"
}
},
"spec": {
"description": "Enables querying the Jaeger data source without the proxy",
"stage": "experimental",
"codeowner": "@grafana/oss-big-tent"
"stage": "GA",
"codeowner": "@grafana/oss-big-tent",
"expression": "true"
}
},
{

Loading…
Cancel
Save