Skip to content

T-20356 Correct the comments on the size-limit guard - #4

Merged
PetrHeinz merged 1 commit into
mainfrom
claude/t-20356-guard-comments
Oct 6, 2026
Merged

PetrHeinz merged 1 commit into
mainfrom
claude/t-20356-guard-comments

Conversation

@PetrHeinz

Copy link
Copy Markdown
Member

Verifying the oversized-record behaviour with plain curl showed that the ingest endpoint does not discard a record over the 10 MiB limit silently: it answers 2xx and replaces the record with a notice row in the source ("Individual log entry over the max allowed size of 10 MiB was dropped by Better Stack", with the original size and a 1 KiB prefix of the payload). The comments on the client-side guard said otherwise. They now describe what the guard is for: not uploading megabytes that cannot land, reporting the drop where the application can see it, and keeping Stats honest instead of counting the record as sent. Comments only, no behaviour change.

🤖 Generated with Claude Code

The endpoint does not discard an oversized record silently: it replaces it
with a notice row in the source. The guard still pays for itself by not
uploading megabytes that cannot land, by reporting where the application
can see it and by keeping Stats honest.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@PetrHeinz
PetrHeinz marked this pull request as ready for review October 6, 2026 14:51
@PetrHeinz
PetrHeinz merged commit 14bdb30 into main Oct 6, 2026
9 checks passed
@PetrHeinz
PetrHeinz deleted the claude/t-20356-guard-comments branch October 6, 2026 14:51
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