Skip to content
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

feat(uptime): Use UptimeSubscriptionRegion to direct config updates to the appropriate region topic #82441

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wedamija
Copy link
Member

This uses UptimeSubscriptionRegion to determine which regions a subscription should be run in, and sends config updates to each of those regions.

Changes the config producer to use UPTIME_REGIONS to route messages to the appropriate topic, instead of being hardcoded.

Also includes hacks to use the default region when no regions exist for a subscription. This is temporary until we start writing UptimeSubscriptionRegion rows.

We should wait until https://github.com/getsentry/ops/pull/13422 is merged before going ahead, so that regions are appropriately configured in production.

… to the appropriate region topic

This uses `UptimeSubscriptionRegion` to determine which regions a subscription should be run in, and sends config updates to each of those regions.

Changes the config producer to use `UPTIME_REGIONS` to route messages to the appropriate topic, instead of being hardcoded.

Also includes hacks to use the default region when no regions exist for a subscription. This is temporary until we start writing `UptimeSubscriptionRegion` rows.

We should wait until getsentry/ops#13422 is merged before going ahead, so that regions are appropriately configured in production.
@wedamija wedamija requested a review from a team as a code owner December 20, 2024 02:30
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 20, 2024
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

Attention: Patch coverage is 93.93939% with 2 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/uptime/config_producer.py 84.61% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #82441      +/-   ##
==========================================
- Coverage   80.44%   80.43%   -0.01%     
==========================================
  Files        7307     7307              
  Lines      322174   322186      +12     
  Branches    21014    21014              
==========================================
- Hits       259159   259145      -14     
- Misses      62609    62635      +26     
  Partials      406      406              

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant