Skip to content

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

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

feat(core): Make transport channel capacity configurable#1311
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 8910502

@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 2 times, most recently from a204d25 to 659a6b9 Compare September 1, 2026 15:22
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 659a6b9 to 8910502 Compare September 1, 2026 15:23
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