Repository navigation
Sample 0.5% of Cloud backend traces to stay within the Sentry span quota - #1530
Merged
Merged
Conversation
helpcodeai
enabled auto-merge (squash)
November 5, 2026 09:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sentry has accepted no spans for days: the organisation's span quota is used up every day. On 11-04 the Cloud backend sent about 714k spans (662k dropped by the SDK's rate-limit backoff, 52k refused with
span_usage_exceeded) at the Cloud defaultSENTRY_TRACES_SAMPLE_RATE=0.05. So we paid the tracing CPU cost (Sentry Prisma tracing was about 12 % of backend CPU in the 11-03 profile) and saw no traces.Changes
SENTRY_TRACES_SAMPLE_RATEindocker-compose.cloud.ymlgoes from 0.05 to 0.005. MCP calls keep a fifth of it (0.001). Errors are unchanged..envdoes not set this variable, so the next Cloud deploy picks up the new value. Setting it in.envstill overrides it.Expected: about 70k backend spans a day plus about 40k from the website, back under the quota.
Type
Testing
.envhas noSENTRY_TRACES_SAMPLE_RATE(checked).span_usage_exceedednear 0 (find_dropped_events).Checklist
Related Issues
Daily check 2026-11-05 (follow-up 4: Sentry spans 100 % dropped).
Deployment: Cloud only. Self-hosted keeps its own default (0, tracing off).