Skip to content

subscriber: Add with_buf_capacity_limit to fmt Layer#3489

Open
arilou wants to merge 1 commit intotokio-rs:mainfrom
arilou:limit_fmt_buf
Open

subscriber: Add with_buf_capacity_limit to fmt Layer#3489
arilou wants to merge 1 commit intotokio-rs:mainfrom
arilou:limit_fmt_buf

Conversation

@arilou
Copy link

@arilou arilou commented Mar 9, 2026

Shrink the thread-local formatting buffer after each event if its capacity exceeds the configured limit.

Prevents outlier large log lines from permanently inflating TLS buffers across worker threads.

Motivation

Solution

Shrink the thread-local formatting buffer after each event if its capacity
exceeds the configured limit.

Prevents outlier large log lines from permanently inflating TLS buffers
across worker threads.

Signed-off-by: Jon Doron <jond@wiz.io>
@arilou arilou requested review from a team, hawkw and hds as code owners March 9, 2026 09:47
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.

1 participant