Skip to content

ref(options): migrate rate-limit runtime config to sentry-options#8116

Open
phacops wants to merge 2 commits into
claude/options-migration-routingfrom
claude/options-migration-rate-limit
Open

ref(options): migrate rate-limit runtime config to sentry-options#8116
phacops wants to merge 2 commits into
claude/options-migration-routingfrom
claude/options-migration-rate-limit

Conversation

@phacops

@phacops phacops commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What

Module slice of the runtime-config → sentry-options migration (splitting #8096). Migrates the rate-limiter and per-project quota-timing runtime config to sentry-options. Schema defaults match the prior get_*_config defaults, so behavior is unchanged until set in sentry-options-automator.

Stacked on #8115#8114#8113. Review/merge the base PRs first; bases retarget down the stack as they merge.

Keys migrated here

bypass_rate_limit, rate_history_sec, rate_limit_shard_factor, mem_rate_limit_per_sec, project_quota_time_percentage, counter_window_size_minutes, allows_skipping_single_project_replacements.

Tests that toggled these via state.set_config(...) now use sentry_options.testing.override_options(...).

Verification

ruff check + ruff format --check clean; mypy clean; 21/21 tests/state/test_rate_limit.py pass locally.

🤖 Generated with Claude Code


Generated by Claude Code

Migrate the rate-limiter and per-project quota-timing runtime config to
sentry-options. Schema defaults match the prior get_*_config defaults, so
behavior is unchanged until set in sentry-options-automator.

Keys migrated in this PR:
  bypass_rate_limit, rate_history_sec, rate_limit_shard_factor,
  mem_rate_limit_per_sec, project_quota_time_percentage,
  counter_window_size_minutes, allows_skipping_single_project_replacements

Tests that toggled these via state.set_config(...) now use
sentry_options.testing.override_options(...).

Stacked on the storage-routing / ConfigurableComponent migration PR.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01U2Cu68uGZRcCVS14jcyd3E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants