No Metrics implementation in core module

クローズ
#1,219 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java, observability-sre
領域
observability

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Java
スター
510
フォーク
196
平均マージ
2日 4時間
マージ済み PR(30日)
57

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

a2aproject/a2a-java のほかの issue

a2aproject/a2a-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。