Skip to content

feat(develop): Propose new discard reason for buffer overflow #12395

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

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Jan 20, 2025

ref getsentry/team-sdks#116

My prettier formatted this page, but the main change is to add buffer_overflow as a discard reason.

The reason we have buffer_overflow as a separate item to queue_overflow is that in the future when we send log items in envelopes we'll increment queue_overflow for the transport queue. We want to differentiate between the transport queue and the internal buffer explicitly.

After this we need to add the reason to snuba as a new client discard reason.

@AbhiPrasad AbhiPrasad requested a review from k-fish January 20, 2025 14:20
@AbhiPrasad AbhiPrasad self-assigned this Jan 20, 2025
Copy link

vercel bot commented Jan 20, 2025

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

Name Status Preview Comments Updated (UTC)
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 20, 2025 2:29pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Jan 20, 2025 2:29pm
sentry-docs ⬜️ Ignored (Inspect) Visit Preview Jan 20, 2025 2:29pm

AbhiPrasad added a commit to getsentry/snuba that referenced this pull request Jan 21, 2025
ref getsentry/team-sdks#116

This PR implements a new client discard reason for `buffer_overflow`.
This will be used to track when the internal breadcrumbs buffer
overflows for the new logs product that we are working on. This is
documented in develop here:
getsentry/sentry-docs#12395

I also went ahead and added code comments that describes what all the
different client discard reasons mean. This is done in commit
b3dcd67, while the actual change to add
the `buffer_overflow` discard reason was added in
dd25dde.

Note: The reason we have `buffer_overflow` as a separate item to
`queue_overflow` is that in the future when we send log items in
envelopes we'll increment `queue_overflow` for the transport queue. We
want to differentiate between the transport queue and the internal
buffer explicitly.

---------

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
@AbhiPrasad AbhiPrasad merged commit 6e07826 into master Jan 21, 2025
10 checks passed
@AbhiPrasad AbhiPrasad deleted the abhi-ratelimit_backoff branch January 21, 2025 17:52
AbhiPrasad added a commit to getsentry/sentry-javascript that referenced this pull request Jan 23, 2025
ref getsentry/team-sdks#116

This PR implements a new client discard reason for `buffer_overflow`.
This will be used to track when the internal breadcrumbs buffer
overflows for the new logs product that we are working on. This is
documented in develop here:
getsentry/sentry-docs#12395

Note: The reason we have `buffer_overflow` as a separate item to
`queue_overflow` is that in the future when we send log items in
envelopes we'll increment `queue_overflow` for the transport queue. We
want to differentiate between the transport queue and the internal
buffer explicitly.
AbhiPrasad added a commit to getsentry/sentry-javascript that referenced this pull request Jan 23, 2025
ref getsentry/team-sdks#116

This PR implements a new client discard reason for `buffer_overflow`.
This will be used to track when the internal breadcrumbs buffer
overflows for the new logs product that we are working on. This is
documented in develop here:
getsentry/sentry-docs#12395

Note: The reason we have `buffer_overflow` as a separate item to
`queue_overflow` is that in the future when we send log items in
envelopes we'll increment `queue_overflow` for the transport queue. We
want to differentiate between the transport queue and the internal
buffer explicitly.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2025
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.

2 participants