Open
Bug 2077144
Opened 1 month ago
Updated 8 days ago
Add a `flows_enabled` remote settings override for flows
Categories
(Data Platform and Tools :: Glean: SDK, enhancement, P1)
Data Platform and Tools
Glean: SDK
Tracking
(Not tracked)
NEW
People
(Reporter: travis_, Assigned: travis_)
References
(Blocks 2 open bugs)
Details
Attachments
(1 external file)
Add a per-flow remote override so a flow with wrong instrumentation can be turned off without shipping a build. Depends on the lifecycle bug.
- Add
flows_enabled: HashMap<String, bool>toRemoteSettingsConfig, keyed by flow name, matchingmetrics_enabledandpings_enabled. A missing key falls back to the flow'sdisabledvalue fromflows.yaml. Unknown keys are ignored. The override works both ways, so a flow shipped withdisabled: truecan be turned on remotely. - No
"*"wildcard key, matching the existing maps. - Check the override only when an entry event would open an instance. Changing it never closes an active instance, and it isn't fixed at session start. An instance that is already open runs until it ends normally.
- Read
remote_settings_configunder its existing lock, assession_start()does forsession_sample_rate. Opening an instance is rare enough that this doesn't need theremote_settings_epochcache. - When an entry event doesn't open an instance because the flow is disabled, record nothing, and don't increment
glean.flows_not_started. - In
apply_server_knobs_config(), log a warning when ametrics_enabledoverride disables an event that is in some flow'sstarts_onorends_on. Otherwise the flow stops opening or stops recordingexitoutcomes with no error anywhere, and the data looks like abandonment.
Tests:
- disable then re-enable while an instance is open and check the instance is unaffected, enable a flow shipped disabled, and check the warning is logged.
| Assignee | ||
Updated•8 days ago
|
Assignee: nobody → tlong
Priority: P3 → P2
| Assignee | ||
Updated•8 days ago
|
Priority: P2 → P1
Comment 1•8 days ago
|
||
(via GitHub webhook, authenticated as shared-secret)
You need to log in
before you can comment on or make changes to this bug.
Description
•