Prepare telemetry for GenAI semconv invoke_workflow -> invoke_agent merge

Đang mở
#3,490 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, yaml
Lĩnh vực
observability

Hướng nghiên cứu

Start with telemetry/registry/imports.yaml and telemetry/conformance/live-check.toml, which hold the invoke_workflow references to remove or remap, then find where the invoke_agent.duration, inference_calls and tool_calls metrics and the OpenAI Agents runner name are set. The work is blocked on the upstream semantic-conventions-genai PR 571, so re-check its current state before editing. Done means the five checklist items are applied against the newer semconv pin, with the runner span no longer named "Agent workflow".

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

Mô tả

https://github.com/open-telemetry/semantic-conventions-genai/pull/571 removes gen_ai.invoke_workflow.internal, gen_ai.invoke_workflow.duration and gen_ai.workflow.name, and adds invoke_runner for ADK and OpenAI Agents Runner.run.

Changes needed when we bump the semconv pin:

  • Drop the invoke_workflow imports from telemetry/registry/imports.yaml.
  • In telemetry/conformance/live-check.toml, map invoke_workflow and invoke_runner to gen_ai.invoke_agent.internal.
  • Add gen_ai.operation.name to our invoke_agent.duration, inference_calls and tool_calls metrics.
  • Set the new recommended duration buckets (0.1 s to 24 h).
  • Pass the agent name as workflow_name to OpenAI Agents runs, so the runner span isn't named "Agent workflow".

Blocked on the upstream PR merging. Make sure to cross-check the latest state as smaller things might change before it merges.

Ngôn ngữ chính
Go
Star
4.5k
Fork
937
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
150

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 kagent-dev/kagent

Tất cả issue của kagent-dev/kagent

Issue tương tự

Thêm issue về Go

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.