Skip to content

chore(curl): Record envelope losses in the Curl transport#1175

Open
szokeasaurusrex wants to merge 3 commits into
szokeasaurusrex/reqwest-lossesfrom
szokeasaurusrex/curl-losses
Open

chore(curl): Record envelope losses in the Curl transport#1175
szokeasaurusrex wants to merge 3 commits into
szokeasaurusrex/reqwest-lossesfrom
szokeasaurusrex/curl-losses

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Jun 18, 2026

Copy link
Copy Markdown
Member

Record lost envelopes in the curl transport after the transport thread accepts them for sending. Curl execution failures are recorded as network_error; response-code lookup failures and 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 #1152
Closes RUST-227

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

linear-code Bot commented Jun 18, 2026

Copy link
Copy Markdown

RUST-227

cursor[bot]

This comment was marked as resolved.

@szokeasaurusrex szokeasaurusrex marked this pull request as draft June 18, 2026 11:17
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from 01e1dfc to a400549 Compare June 18, 2026 11:26
@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review June 18, 2026 11:48
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from 9e2510b to 6cce3c1 Compare June 18, 2026 13:16
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from a400549 to 30b705d Compare June 18, 2026 13:16
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from 6cce3c1 to 8f54fdc Compare June 18, 2026 15:05
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch 2 times, most recently from d0fb9ec to bd8072f Compare June 19, 2026 08:46
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from 8f54fdc to 1a8ff61 Compare June 19, 2026 08:46
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from bd8072f to 28f9398 Compare June 19, 2026 08:54
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch 2 times, most recently from 31469a9 to 9c4fe2c Compare June 19, 2026 09:29
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from 28f9398 to 1d70a92 Compare June 19, 2026 09:29
Comment thread sentry/src/transports/curl.rs Outdated
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from 1d70a92 to d566a6d Compare June 19, 2026 09:45
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from 9c4fe2c to 044bcda Compare June 19, 2026 09:45

@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/reqwest-losses branch from 044bcda to 5a39025 Compare June 19, 2026 12:08
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from d566a6d to 0d1f9c7 Compare June 19, 2026 12:08
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from 5a39025 to 4bed875 Compare June 19, 2026 16:05
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from 0d1f9c7 to 78d07ac Compare June 19, 2026 16:05
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from 4bed875 to 7b23f11 Compare June 19, 2026 16:33
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from 78d07ac to c5ba012 Compare June 19, 2026 16:33
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from 7b23f11 to fdfd1f2 Compare June 21, 2026 16:36
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from c5ba012 to de93acf Compare June 21, 2026 16:36
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from fdfd1f2 to b4061c2 Compare June 21, 2026 16:45
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from de93acf to c80c467 Compare June 21, 2026 16:45
Comment thread sentry/src/transports/curl.rs
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from b4061c2 to 546b283 Compare June 21, 2026 17:20
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from c80c467 to 5c62ea2 Compare June 21, 2026 17:20
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from 546b283 to e1b2e92 Compare June 21, 2026 18:28
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from 5c62ea2 to 398ca7c Compare June 21, 2026 18:28
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from e1b2e92 to 95481a4 Compare June 22, 2026 08:12
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from 398ca7c to a1f576a Compare June 22, 2026 08:12
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from 95481a4 to de4ac19 Compare June 22, 2026 11:20
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from a1f576a to b58b512 Compare June 22, 2026 11:20
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from de4ac19 to f24e1e2 Compare June 22, 2026 15:54
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from b58b512 to db5340b Compare June 22, 2026 15:54

@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 db5340b. Configure here.

Comment thread sentry/src/transports/curl.rs
Record lost envelopes in the `curl` transport after the transport thread accepts them for sending. Curl execution failures are recorded as `network_error`; response-code lookup failures and 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 [#1152](#1152)
Closes [RUST-227](https://linear.app/getsentry/issue/RUST-227)
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/reqwest-losses branch from f24e1e2 to 7d5982b Compare June 22, 2026 16:02
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/curl-losses branch from db5340b to 547b8b8 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.

2 participants