Repository navigation
Add Configurable Maximum Length for Serialized Log Values - #690
Open
Damilorlar wants to merge 4 commits into
Open
Damilorlar wants to merge 4 commits into
Damilorlar wants to merge 4 commits into
Conversation
…ssue Sub-Rosa-Issue#667) - Add configurable max serialized string length - Mark truncated values with suffix without including discarded content - Handle nested fields consistently - Add tests for strings, arrays, and error objects
…ssue Sub-Rosa-Issue#667) - Add configurable max serialized string length - Mark truncated values with suffix without including discarded content - Handle nested fields consistently - Add tests for strings, arrays, and error objects
|
@Damilorlar Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Damilorlar
force-pushed
the
feature/issue-667-truncate-logs
branch
from
November 25, 2026 06:52
cc7c9f7 to
3ad1938
Compare
The branch added a second `test` key and a vitest devDependency to the SDK package, so `pnpm install --frozen-lockfile` failed before every CI job could start and the new tests were never executed. Run them on node:test with the rest of the SDK, correct the assertions, tighten the truncation types, and extend the public-API snapshot for the two new exports. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#closes #667
Large upstream errors or malformed inputs can produce excessively long log entries, increasing log volume and potentially exposing unnecessary sensitive information.
This project aims to introduce a configurable maximum length for serialized values in the shared logging package. Values exceeding the limit should be truncated with a clear indicator, without retaining or exposing the discarded content.
Acceptance Criteria:
- Add a configurable maximum serialized string length.
- Mark truncated values without including discarded content.
- Apply consistent truncation to nested fields.
- Add tests covering strings, arrays, and error objects.