Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

feat(sdk): Add name spaces for metrics rate limits #1205

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Mar 26, 2024

Adds a new rate limit component to quota limits in the x-sentry-rate-limits header that communicates the namespace(s) that a metrics rate limit should apply to. The data category of limits that have this component is always metric_bucket, in other quotas this component will not be set.

SDKs are instructed not to send metrics for a certain namespace if a rate limit for that same namespace is active. The default namespace for metrics (used by DDM) is "custom".

Relay implementation via getsentry/relay#3347

Closes https://github.com/getsentry/team-ingest/issues/313

Copy link

vercel bot commented Mar 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
develop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 28, 2024 1:00pm

Copy link
Member

@lforst lforst left a comment

Choose a reason for hiding this comment

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

lgtm!

src/docs/sdk/rate-limiting.mdx Outdated Show resolved Hide resolved
Co-authored-by: Luca Forstner <luca.forstner@gmail.com>
src/docs/sdk/rate-limiting.mdx Outdated Show resolved Hide resolved
@jan-auer jan-auer enabled auto-merge (squash) March 28, 2024 12:58
@jan-auer jan-auer merged commit 62ee785 into master Mar 28, 2024
4 of 5 checks passed
@jan-auer jan-auer deleted the feat/metrics-rate-limit-namespaces branch March 28, 2024 13:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants