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(crons): Begin reporting volume_anomaly_result #79729

Conversation

evanpurkhiser
Copy link
Member

@evanpurkhiser evanpurkhiser commented Oct 24, 2024

This will start with always reporting ticks as having a "normal" volume.
Later we will use the volume anomaly detection to inform this value.

Part of GH-79328.

Do not merge this until the previous changes have already rolled out.

@evanpurkhiser evanpurkhiser requested a review from a team as a code owner October 24, 2024 21:16
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 24, 2024
Copy link

codecov bot commented Oct 24, 2024

Codecov Report

Attention: Patch coverage is 81.81818% 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/monitors/clock_dispatch.py 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #79729      +/-   ##
==========================================
- Coverage   78.41%   78.41%   -0.01%     
==========================================
  Files        7147     7147              
  Lines      315845   315825      -20     
  Branches    43498    43498              
==========================================
- Hits       247685   247654      -31     
- Misses      61825    61833       +8     
- Partials     6335     6338       +3     

@evanpurkhiser evanpurkhiser changed the title feat(crons): Begin reporting tick_volume_anomaly_detection feat(crons): Begin reporting volume_anomaly_result Oct 25, 2024
@evanpurkhiser evanpurkhiser changed the title feat(crons): Begin reporting volume_anomaly_result feat(crons): Begin reporting volume_anomaly_result Oct 25, 2024
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-crons-begin-reporting-tick-volume-anomaly-detection branch from a0a723b to 89d8cd5 Compare October 25, 2024 19:03
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-crons-begin-reporting-tick-volume-anomaly-detection branch from 89d8cd5 to c3f6536 Compare October 25, 2024 19:13
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-crons-begin-reporting-tick-volume-anomaly-detection branch from c3f6536 to c7e8a7f Compare October 25, 2024 19:20
This will start with always reporting ticks as having a "normal" volume.
Later we will use the volume anomaly detection to inform this value.
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-crons-begin-reporting-tick-volume-anomaly-detection branch from c7e8a7f to ec0060f Compare October 25, 2024 19:23
@@ -85,7 +86,12 @@ def _dispatch_tick(ts: datetime):
# XXX(epurkhiser): Unclear what we want to do if we're not using kafka
return

message: ClockTick = {"ts": ts.timestamp()}
volume_anomaly_result = _safe_evaluate_tick_decision(ts)
Copy link
Member Author

@evanpurkhiser evanpurkhiser Oct 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved tick evaluation into the _dispatch_tick, which probably makes more sense to be the thing to call it

@evanpurkhiser evanpurkhiser merged commit e9d3c7f into master Nov 6, 2024
49 of 50 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/feat-crons-begin-reporting-tick-volume-anomaly-detection branch November 6, 2024 21:56
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.

2 participants