{{ message }}
Repository navigation
feat(logging): add structured payload logging with masking and truncation - #1238
Closed
katepallewarprathmesh-sketch wants to merge 2 commits into
Closed
katepallewarprathmesh-sketch wants to merge 2 commits into
katepallewarprathmesh-sketch wants to merge 2 commits into
Conversation
…tion Provide DEBUG-level structured logs for task requests/state changes/ artifacts, negotiation payloads, auth decisions, notification subscription/delivery with 4KB truncation ([truncated] marker), sensitive-data masking (customizable) and trace_id/span_id correlation via OTel reflection + MDC. Fixes a2aproject#1221 Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…6-a2a-java feat(logging): add structured payload logging with masking and truncation
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.

Fixes #1221
I added DEBUG-level structured payload logging for the A2A protocol. Task requests, state changes and artifacts are now logged as structured events, along with negotiation payloads, auth decisions and push notification subscription/delivery. Payloads are truncated to 4KB with a [truncated] marker and sensitive fields like token, credentials, password and url are masked by default. You can customize masking and truncation via system properties or a custom strategy, and logs are correlated with traces via trace_id/span_id from OpenTelemetry or MDC. The logger is disabled by default so there is no overhead when not enabled.