Skip to content

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

Merged
szokeasaurusrex merged 2 commits into
szokeasaurusrex/ureq-lossesfrom
szokeasaurusrex/transport-thread-client-reports
Jun 24, 2026
Merged

szokeasaurusrex merged 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 Resolved
@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/transport-thread-client-reports branch from 614c2e1 to bdff5cb Compare June 22, 2026 08:12
Comment thread sentry/src/transports/tokio_thread.rs Resolved
@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/transport-thread-client-reports branch from 96a15e5 to 11f9014 Compare June 22, 2026 16:02
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-thread-client-reports branch from 11f9014 to bd8398d Compare June 23, 2026 09:37

@lcian lcian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-thread-client-reports branch from bd8398d to 2d8e611 Compare June 23, 2026 12:36
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/transport-thread-client-reports branch from 2d8e611 to 786c492 Compare June 24, 2026 12:28
@szokeasaurusrex
szokeasaurusrex merged commit 4908b0b into master Jun 24, 2026
32 of 49 checks passed
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.

2 participants