Skip to content

chore(transport): Record std thread client report losses#1184

Open
szokeasaurusrex wants to merge 2 commits into
szokeasaurusrex/ureq-lossesfrom
szokeasaurusrex/transport-thread-client-reports
Open

chore(transport): Record std thread client report losses#1184
szokeasaurusrex wants to merge 2 commits into
szokeasaurusrex/ureq-lossesfrom
szokeasaurusrex/transport-thread-client-reports

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Jun 21, 2026

Copy link
Copy Markdown
Member

Record envelopes dropped before the curl and ureq HTTP transports see them. The std transport thread now reports queue overflow, disconnected worker, and rate-limit drops through the client report recorder.

Shutdown losses remain unreported because shutdown ends the opportunity to send another envelope carrying the aggregated client report.

Fixes #1149
Fixes RUST-224

@szokeasaurusrex szokeasaurusrex changed the title feat(transport): Record std thread client report losses chore(transport): Record std thread client report losses Jun 21, 2026
@linear-code

linear-code Bot commented Jun 21, 2026

Copy link
Copy Markdown

RUST-224

@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review June 21, 2026 18:26
@szokeasaurusrex szokeasaurusrex requested a review from lcian as a code owner June 21, 2026 18:26

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 11324da. Configure here.

Comment thread sentry/src/transports/ratelimit.rs
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch from 3309c81 to d48565f Compare June 21, 2026 18:28
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/transport-thread-client-reports branch from 11324da to 614c2e1 Compare June 21, 2026 18:28
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch from d48565f to ca00003 Compare June 22, 2026 08:12
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/transport-thread-client-reports branch from 614c2e1 to bdff5cb Compare June 22, 2026 08:12
Comment thread sentry/src/transports/tokio_thread.rs
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch from ca00003 to e94b7e4 Compare June 22, 2026 11:20
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/transport-thread-client-reports branch 2 times, most recently from db28b96 to 96a15e5 Compare June 22, 2026 15:54
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch from e94b7e4 to 5b42ae7 Compare June 22, 2026 15:54
Record envelopes dropped before the curl and ureq HTTP transports see them. The std transport thread now reports queue overflow, disconnected worker, and rate-limit drops through the client report recorder.

Shutdown losses remain unreported because shutdown ends the opportunity to send another envelope carrying the aggregated client report.

Fixes [#1149](#1149)
Fixes [RUST-224](https://linear.app/getsentry/issue/RUST-224)
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch from 5b42ae7 to 7e008a3 Compare June 22, 2026 16:02
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/transport-thread-client-reports branch from 96a15e5 to 11f9014 Compare June 22, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant