-
-
Notifications
You must be signed in to change notification settings - Fork 63
ref(options): migrate runtime config to sentry-options (Python RPC/query + Rust killswitches) #8096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
phacops
wants to merge
15
commits into
master
Choose a base branch
from
claude/upbeat-newton-4njhnb
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
270e6ae
ref(options): migrate enable_any_attribute_filter to sentry-options
claude 16891b4
ref(options): migrate read-only RPC/query runtime configs to sentry-o…
claude 3462c2b
ref(options): migrate static Rust consumer runtime configs to sentry-…
claude 88bbe22
ref(options): migrate db_query cache flags to sentry-options
claude fd5e12d
ref(options): harden get_option against unexpected client errors
claude 5edba9d
ref(options): migrate clickhouse-http and utils config knobs
claude 68f61da
ref(options): migrate query-processor and RPC flags to sentry-options
claude 43b439d
ref(options): migrate storage-selector and consumer flags to sentry-o…
claude c4300a3
ref(options): keep http_batch_join_timeout on runtime config
claude 65afd2b
ref(options): migrate read-through cache flags to sentry-options
claude c5d35d1
ref(options): migrate deletions subsystem flags to sentry-options
claude 453e82e
ref(options): migrate routing/scheduler/validation flags to sentry-op…
claude a3f41e2
ref(options): migrate replacements subsystem flags to sentry-options
claude db76ae6
ref(options): migrate generic_metrics_use_case_killswitch to sentry-o…
claude 7659d7a
ref(options): use get_bool_option for enable_any_attribute_filter
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics killswitch ignores runtime config
High Severity
The generic-metrics consumer reads
generic_metrics_use_case_killswitchonly from sentry-options, not from Snuba runtime config (Redis/admin). Overrides still managed through the admin UI orstate.set_configno longer affect Rust processing, so an active killswitch can stop working after deploy until the same value exists in sentry-options-automator.Reviewed by Cursor Bugbot for commit 7659d7a. Configure here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intentional and consistent with the rest of this PR (and with the other Rust consumer killswitches, e.g. blq/healthcheck, which already read from sentry-options). This Rust consumer is the only reader of
generic_metrics_use_case_killswitch, so there's no split-brain between Python and Rust — moving the single read site fully relocates the source of truth to sentry-options, where operators manage it via sentry-options-automator going forward.The one real point here is rollout cutover, which applies to every key in this migration: a value currently set in Redis runtime config does not auto-copy into sentry-options. So as part of rolling this out, any presently-active overrides (this killswitch included) need to be mirrored into sentry-options-automator before/with the deploy so they carry over. That's a runbook/coordination step rather than a code change. Keeping the read on sentry-options.
Generated by Claude Code