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(metric-stats): Add cardinality limited outcome id #68422

Merged
merged 2 commits into from Apr 11, 2024

Conversation

Dav1dde
Copy link
Member

@Dav1dde Dav1dde commented Apr 8, 2024

This adds a new outcome id for metric cardinality limits. A cardinality limited is similar to rate limits but instead of being enforced on volume (rate) it enforces cardinality. As well as quotas a metric can be subject to multiple cardinality limits, the limit id is noted in the reason field.

The new id will only be emitted for the METRIC_BUCKET data category for now, which is unused throughout the product except for (abuse-)quotas.

Loosely related to getsentry/relay#3147

@Dav1dde Dav1dde requested a review from a team as a code owner April 8, 2024 12:06
@Dav1dde Dav1dde requested review from a team April 8, 2024 12:06
@github-actions github-actions bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Apr 8, 2024
Copy link
Contributor

github-actions bot commented Apr 8, 2024

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

Copy link

codecov bot commented Apr 8, 2024

Bundle Report

Changes will increase total bundle size by 82 bytes ⬆️

Bundle name Size Change
sentry-webpack-bundle-array-push 26.16MB 82 bytes ⬆️

Copy link
Member

@iker-barriocanal iker-barriocanal left a comment

Choose a reason for hiding this comment

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

LGTM, but I'm unsure if other places should be updated.

@Dav1dde Dav1dde merged commit 93655dc into master Apr 11, 2024
51 of 52 checks passed
@Dav1dde Dav1dde deleted the dav1d/feat/card-limit-outcome-id branch April 11, 2024 07:00
c298lee pushed a commit that referenced this pull request Apr 12, 2024
This adds a new outcome id for metric cardinality limits. A cardinality
limited is similar to rate limits but instead of being enforced on
volume (rate) it enforces cardinality. As well as quotas a metric can be
subject to multiple cardinality limits, the limit id is noted in the
reason field.


The new id will only be emitted for the `METRIC_BUCKET` data category
for now, which is unused throughout the product except for
(abuse-)quotas.
@github-actions github-actions bot locked and limited conversation to collaborators Apr 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 Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants