Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

No structured payload logging

Aperta
#1,221 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
18/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
observability

Direzione di ricerca

The payload names only the gen_ai.agent.a2a.request and gen_ai.agent.a2a.response span attributes, enabled by a system property, so start by finding where those attributes are set in the request and response path. The issue does not settle which logging API to use, which events to emit, or how masking should be configured, so this needs a design decision before any code. Done means the agreed events are emitted with truncation and trace correlation, backed by tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

There is no structured logging of A2A protocol message payloads. The only option is an opt-in toString() on span attributes, which is not a proper logging mechanism.
Current Behavior

a2a-java has gen_ai.agent.a2a.request / gen_ai.agent.a2a.response span attributes (enabled via system property), but these are span attributes, not structured logs.
There is no structured log event for task requests, state changes, result artifacts, negotiation payloads, authorization decisions, or notification deliveries.
No payload size truncation or sensitive data masking is provided.

Expected Behavior

Provide structured log events (at DEBUG level by default) for key protocol messages: task requests, state changes, result artifacts, negotiation payloads, authorization decisions, notification subscriptions and deliveries.
Include configurable payload size truncation (default 4KB) with [truncated] marker.
Provide sensitive data masking with customizable strategies.
Logs should be correlated to traces via trace_id / span_id.

Impact

Cannot inspect actual message payloads when debugging issues.
No audit trail of authorization decisions or negotiation content.
Cannot correlate log entries to traces for root-cause analysis.
The toString() approach is not suitable for production use (no truncation, no masking, no structured fields).

cf Issue #1132

Lingua principale
Java
Stelle
505
Fork
185
Merge medio
1g 7h
PR unite (30g)
25

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di a2aproject/a2a-java

Tutte le issue di a2aproject/a2a-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.