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

ref(relay): Make cardinality limits more configurable #68158

Merged
merged 4 commits into from
Apr 3, 2024

Conversation

Dav1dde
Copy link
Member

@Dav1dde Dav1dde commented Apr 3, 2024

Makes cardinality limits for Relay more configurable, to be able to test and roll them out more easily.

drop from the sessions config was removed in getsentry/relay#3271 - required for the librelay update to work

@Dav1dde Dav1dde requested review from a team as code owners April 3, 2024 07:27
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 3, 2024
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

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

Project coverage is 79.39%. Comparing base (3a38896) to head (ec602e2).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #68158      +/-   ##
==========================================
- Coverage   79.39%   79.39%   -0.01%     
==========================================
  Files        6380     6380              
  Lines      282789   282802      +13     
  Branches    48769    48771       +2     
==========================================
+ Hits       224517   224523       +6     
- Misses      57825    57832       +7     
  Partials      447      447              
Files Coverage Δ
src/sentry/options/defaults.py 100.00% <100.00%> (ø)
src/sentry/relay/config/__init__.py 96.09% <83.33%> (-0.48%) ⬇️

... and 4 files with indirect coverage changes

@Dav1dde Dav1dde force-pushed the dav1d/ref/card-conf-limits branch from dd92e44 to ec602e2 Compare April 3, 2024 08:20
@Dav1dde Dav1dde changed the title wip ref(relay): Make cardinality limits more configurable Apr 3, 2024
Comment on lines 291 to 293
rollout_rate = clo.pop("rollout_rate", 1.0)
if (project.organization.id % 100000) / 100000 >= rollout_rate:
continue
Copy link
Member

Choose a reason for hiding this comment

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

nit: Could use the in_rollout_group utility here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I saw that but it requires an option to be passed :(

@Dav1dde Dav1dde merged commit a245c42 into master Apr 3, 2024
50 checks passed
@Dav1dde Dav1dde deleted the dav1d/ref/card-conf-limits branch April 3, 2024 10:15
@Dav1dde Dav1dde self-assigned this Apr 3, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 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.

2 participants