Skip to content

Conversation

brendanhsentry
Copy link
Member

@brendanhsentry brendanhsentry commented Jul 30, 2025

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 30, 2025
Copy link

codecov bot commented Jul 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #96818       +/-   ##
===========================================
+ Coverage   62.08%   80.16%   +18.07%     
===========================================
  Files        8562     8513       -49     
  Lines      377263   378879     +1616     
  Branches    24577    24140      -437     
===========================================
+ Hits       234234   303729    +69495     
+ Misses     140572    74860    -65712     
+ Partials     2457      290     -2167     

github-merge-queue bot pushed a commit to getsentry/relay that referenced this pull request Aug 7, 2025
github-merge-queue bot pushed a commit to getsentry/relay that referenced this pull request Aug 7, 2025
github-merge-queue bot pushed a commit to getsentry/relay that referenced this pull request Aug 8, 2025
)

Adding `downsampled_event_retention` to project configs as part of the
[retention changes
project](https://www.notion.so/sentry/Retention-Changes-Summary-Jul-2025-2238b10e4b5d80e4b846d055178f334e?source=copy_link)

See getsentry/sentry#96818 and
getsentry/getsentry#18058 for how it'll be set.

---------

Co-authored-by: Pierre Massat <[email protected]>
Copy link

linear bot commented Aug 8, 2025

@brendanhsentry brendanhsentry marked this pull request as ready for review August 11, 2025 23:53
@brendanhsentry brendanhsentry requested a review from a team as a code owner August 11, 2025 23:53
@brendanhsentry brendanhsentry requested a review from phacops August 11, 2025 23:54
Returns the retention for downsampled events in the given organization in days.
Returns ``None`` if downsampled events are to be stored indefinitely.
"""
return 0
Copy link
Member

Choose a reason for hiding this comment

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

Comment says it returns None, this is actually 0.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok I updated the docstring here fc37c5d

Copy link
Contributor

Choose a reason for hiding this comment

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

Would there ever be a need to set retention to 0?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, we wouldn't. If you want a better default here, we can return get_event_retention()

scrubData: true
scrubDefaults: true
sensitiveFields: []
downsampledEventRetention: 0
Copy link
Member

Choose a reason for hiding this comment

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

That seems bad, if we were to store 0?

Copy link
Contributor

Choose a reason for hiding this comment

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

Returns the retention for downsampled events in the given organization in days.
Returns ``None`` if downsampled events are to be stored indefinitely.
"""
return 0
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose this will read a value linked to the plan at some point?

Copy link
Member Author

Choose a reason for hiding this comment

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

@phacops phacops requested a review from vbro August 13, 2025 21:34
@brendanhsentry brendanhsentry merged commit fc69657 into master Aug 14, 2025
116 of 126 checks passed
@brendanhsentry brendanhsentry deleted the brendan/downsampled-event-retention-quotas branch August 14, 2025 17:23
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.

4 participants