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

fix(beacon): Events in 24h for now calculated properly #62441

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

hubertdeng123
Copy link
Member

events in last 24 hours were always showing as 0, this fixes that

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 29, 2023
Copy link

codecov bot commented Dec 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f8600ff) 81.21% compared to head (c862138) 81.26%.
Report is 345 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #62441      +/-   ##
==========================================
+ Coverage   81.21%   81.26%   +0.04%     
==========================================
  Files        5188     5197       +9     
  Lines      228782   230095    +1313     
  Branches    38423    39764    +1341     
==========================================
+ Hits       185812   186989    +1177     
- Misses      37302    37376      +74     
- Partials     5668     5730      +62     
Files Coverage Δ
src/sentry/api/endpoints/relocations/unpause.py 93.84% <100.00%> (-1.99%) ⬇️
src/sentry/api/serializers/models/relocation.py 100.00% <100.00%> (ø)
src/sentry/tasks/beacon.py 87.91% <100.00%> (+1.00%) ⬆️

... and 337 files with indirect coverage changes

@hubertdeng123 hubertdeng123 marked this pull request as ready for review January 2, 2024 18:55
for organization_id in organization_ids:
events_per_org_24h = tsdb.backend.get_sums(
model=TSDBModel.organization_total_received,
keys=[organization_id],
Copy link
Member Author

Choose a reason for hiding this comment

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

multiple org ids cannot be passed in here

Copy link
Contributor

@azaslavsky azaslavsky left a comment

Choose a reason for hiding this comment

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

Discussed a couple of small changes to make the test more readable offline, but otherwise LGTM.

@hubertdeng123 hubertdeng123 merged commit 27382b6 into master Jan 2, 2024
50 checks passed
@hubertdeng123 hubertdeng123 deleted the hubertdeng123/fix-beacon-events-24h branch January 2, 2024 19:50
@chadwhitacre chadwhitacre mentioned this pull request Jan 2, 2024
26 tasks
Copy link

sentry-io bot commented Jan 6, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ RateLimitExceeded: table concurrent of 171 exceeds limit of 120 sentry.tasks.send_beacon View Issue
  • ‼️ QueryExecutionError: Connection refused (127.0.0.1:9056) sentry.tasks.send_beacon View Issue

Did you find this useful? React with a 👍 or 👎

armenzg pushed a commit that referenced this pull request Jan 8, 2024
events in last 24 hours were always showing as 0, this fixes that
trillville pushed a commit that referenced this pull request Jan 19, 2024
events in last 24 hours were always showing as 0, this fixes that
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants