Skip to content

chore(ureq): Record envelope losses in the Ureq transport - #1178

Merged
szokeasaurusrex merged 3 commits into
szokeasaurusrex/curl-lossesfrom
szokeasaurusrex/ureq-losses
Jun 24, 2026
Merged

szokeasaurusrex merged 3 commits into
szokeasaurusrex/curl-lossesfrom
szokeasaurusrex/ureq-losses

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Jun 18, 2026 •

Copy link
Copy Markdown
Member

Record lost envelopes in the ureq transport after the transport thread accepts them for sending. Ureq request failures are recorded as network_error; non-429 HTTP 4xx/5xx responses are recorded as send_error.

Keep existing rate-limit handling for 429 responses and the existing payload-too-large debug message for 413 responses.

Closes #1153
Closes RUST-228

@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review June 18, 2026 15:07
@szokeasaurusrex
szokeasaurusrex requested a review from lcian as a code owner June 18, 2026 15:07
@linear-code

linear-code Bot commented Jun 18, 2026

Copy link
Copy Markdown

RUST-228

@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch 2 times, most recently from 909c0a7 to 4a14916 Compare June 19, 2026 08:54

@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/ureq-losses branch from 4a14916 to 1d62e22 Compare June 19, 2026 09:29
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch from 1d62e22 to dec4c12 Compare June 19, 2026 09:45
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch from dec4c12 to 42903b4 Compare June 19, 2026 12:08
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch 2 times, most recently from e7bcd1e to 844ce7b Compare June 19, 2026 16:33
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch from 844ce7b to e09c2d4 Compare June 21, 2026 16:36
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch from e09c2d4 to 4d3c698 Compare June 21, 2026 16:45
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch 2 times, most recently from 3309c81 to d48565f 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/ureq-losses branch from ca00003 to e94b7e4 Compare June 22, 2026 11:20
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch 2 times, most recently from 5b42ae7 to 7e008a3 Compare June 22, 2026 16:02
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch from 7e008a3 to 44fb626 Compare June 23, 2026 09:37
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch from 44fb626 to ac21a8b Compare June 23, 2026 12:36
Record lost envelopes in the `ureq` transport after the transport thread accepts them for sending. Ureq request failures are recorded as `network_error`; non-`429` HTTP `4xx`/`5xx` responses are recorded as `send_error`.

Keep existing rate-limit handling for `429` responses and the existing payload-too-large debug message for `413` responses.

Closes [#1153](#1153)
Closes [RUST-228](https://linear.app/getsentry/issue/RUST-228)
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/ureq-losses branch from ac21a8b to 753dfb0 Compare June 24, 2026 12:28
@szokeasaurusrex
szokeasaurusrex merged commit 753e68a into master Jun 24, 2026
39 of 49 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the szokeasaurusrex/ureq-losses branch June 24, 2026 12:43
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