Repository navigation
Mask console tags and exception details before background scrubbing - #2828
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||
alexmojaki
commented
Nov 18, 2026
alexmojaki
commented
Nov 18, 2026
alexmojaki
commented
Nov 18, 2026
alexmojaki
commented
Nov 18, 2026
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 3 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
alexmojaki
commented
Nov 18, 2026
alexmojaki
commented
Nov 18, 2026
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.
Summary
Transform tag elements and the exception fields printed by the console before a span enters the background scrubbing queue. Keep the full attribute scrub on its existing background path. Preserve the original callback paths and leave the exception event name unchanged so the console recognizes it.
The later normal scrub may invoke
transform_stringagain for these values. This follows the accepted trade-off for targeted early masking.Validation
uv run pytest tests/test_secret_scrubbing.py tests/test_console_exporter.py -q(201 passed)This PR addresses the console masking issue only. It does not close pydantic/platform#38102.