No Metrics implementation in core module

Geschlossen
#1,219 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
30/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
java, observability-sre
Bereich
observability

Rechercherichtung

The payload names no source file, so start with the core module's existing telemetry or instrumentation points and with the linked Issue #1132, which the body cross-references for context. Decide where the three instruments (gen_ai.client.operation.duration, gen_ai.client.token.usage, a2a.task.request.duration) should be recorded, and confirm the expected attribute names with a maintainer before writing code. Done means each instrument is recorded on the matching operation and a test confirms the values.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

The a2a-java core module has zero Metrics implementation. There are no histograms, counters, or any other instruments measuring operation duration, throughput, or token usage.

Current Behavior
Expected Metric | Type | Status -- | -- | -- gen_ai.client.operation.duration | Histogram | ❌ Missing gen_ai.client.token.usage | Histogram | ❌ Missing a2a.task.request.duration | Histogram | ❌ Missing
  • There is no gen_ai.client.operation.duration metric, which is the standard OTel GenAI operation duration histogram.
Expected Behavior

The core SDK module should provide built-in metrics instruments, at minimum:

  • gen_ai.client.operation.duration (OTel GenAI standard) — operation latency histogram
  • gen_ai.client.token.usage (OTel GenAI standard) — token usage histogram by gen_ai.token.type
  • Task request duration covering the full SSE streaming lifecycle (from stream initiation to last event)
Impact
  • Cannot measure operation latency or throughput at scale.
  • Cannot set up SLO/SLA alerts based on latency percentiles.
  • Cannot quantify agent interaction performance trends.
  • Token usage is not tracked, making cost analysis impossible.

cf Issue #1132

Vorherrschende Sprache
Java
Sterne
510
Forks
196
Ø Merge
2 T. 4 Std.
Gemergte PRs (30 T.)
57

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus a2aproject/a2a-java

Alle Issues in a2aproject/a2a-java

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.