Skip to content

feat(core): Make transport channel capacity configurable - #1311

Open
szokeasaurusrex wants to merge 1 commit into
masterfrom
szokeasaurusrex/transport-channel-capacity
Open

szokeasaurusrex wants to merge 1 commit into
masterfrom
szokeasaurusrex/transport-channel-capacity

Conversation

@szokeasaurusrex

Copy link
Copy Markdown
Member

The transport channel previously had a hardcoded capacity of 30, which can saturate in high-throughput scenarios, causing envelopes to be dropped.

Add a transport_channel_capacity option to ClientOptions, propagated to transports via TransportOptions. When unset, each transport uses its own default (currently 30, subject to change). A capacity of 0 is clamped to 1 with a debug message.

Closes #994
Closes RUST-149

@linear-code

linear-code Bot commented Sep 1, 2026

Copy link
Copy Markdown

RUST-149

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against f7a618f

@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-channel-capacity branch from f8a2e9a to 79cdaf5 Compare September 1, 2026 12:44
@szokeasaurusrex
szokeasaurusrex requested review from Litarnus and giortzisg and removed request for Litarnus and giortzisg September 1, 2026 12:46
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-channel-capacity branch 4 times, most recently from 8910502 to 0b76b66 Compare September 4, 2026 09:29
The transport channel previously had a hardcoded capacity of 30, which can saturate in high-throughput scenarios, causing envelopes to be dropped.

Add a `transport_channel_capacity` option to `ClientOptions`, propagated to transports via `TransportOptions`. When unset, each transport uses its own default (currently 30, subject to change). A capacity of `0` is clamped to `1` with a debug message.

Closes [#994](#994)
Closes [RUST-149](https://linear.app/getsentry/issue/RUST-149/make-transport-channel-capacity-configurable)
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/transport-channel-capacity branch from 0b76b66 to f7a618f Compare September 11, 2026 15:24
@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review September 11, 2026 15:24
@szokeasaurusrex
szokeasaurusrex requested a review from a team as a code owner September 11, 2026 15:24
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.

Make transport channel capacity configurable

1 participant