No Metrics implementation in core module

Đã đóng
#1,219 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, observability-sre
Lĩnh vực
observability

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Java
Star
510
Fork
196
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
57

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của a2aproject/a2a-java

Tất cả issue của a2aproject/a2a-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.