Docs: reconcile the tracing page with the generated telemetry contract
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
- 65/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go, python, typescript
- Lĩnh vực
- documentation, observability
Hướng nghiên cứu
Start by reading docs/architecture/telemetry.md and docs/architecture/telemetry-contract.md in the kagent repository. Run an agent to capture a live trace, comparing emitted attributes and span names against the tables in docs/observability/tracing.md. Verify the capture control environment variables by testing each. Update the correlation table to distinguish contract attributes from transitional Go ADK keys, and ensure audit-prompts.md receives the same updates. Done when all claims are validated against a live trace and both pages are reconciled.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The correlation attributes table on observability/tracing.md is wrong for kagent, the default runtime.
Targets v1.0.0-alpha7, verified 2026-10-06. Sequence after #531, which rewrites the same pages for the Helm value rename. The Agent and Session pass landed in #551.
| Attribute the page lists | What alpha7 emits |
|---|---|
gen_ai.conversation.id |
Correct on every runtime. |
gen_ai.task.id |
Python runtimes only. The Go ADK emits a2a.task.id. |
kagent.user_id |
Python runtimes only. The Go ADK emits enduser.id. |
kagent.app_name |
Nothing emits it. At alpha7 the name survives only in go/core/test/e2e/tracing_test.go. |
A reader who builds a dashboard from this table keys it on one attribute no runtime writes, and two more that are absent on the runtime they are most likely using.
The table has to split by runtime
The split is durable, not a brief overlap: the Go ADK's only remaining keys outside the contract are gcp.vertex.agent.*, while the Python ADK, LangGraph and CrewAI still carry kagent.user_id and gen_ai.task.id. Moving Python off OpenLLMetry remains open on kagent#2907. docs/architecture/telemetry.md records the split in its Who emits what table.
The contract's request identity is gen_ai.conversation.id, a2a.task.id and enduser.id, with kagent.runtime on the resource and kagent.invocation.segment on request spans. kagent.runtime is absent on every Python runtime, so those traces cannot be filtered by runtime at all.
Also worth covering, since neither is discoverable from a span name: kagent.invocation.segment distinguishes initial from resumed, and turns are counted by it rather than by invoke_agent spans; kagent.invocation.relationship is a link attribute that states a relationship without reparenting spans or moving token usage.
Spans and captured content
The span table names invocation, which kagent#2929 removed. At alpha7 the request span is an otelgrpc or otelhttp SERVER span, with kagent's a2a.request on the Go ADK and a FastAPI SERVER span on the Python runtimes. The contract names span definitions rather than emitted names, so kagent.invoke_agent.internal is emitted as invoke_agent {gen_ai.agent.name}.
The capture warning names gcp.vertex.agent.llm_request and llm_response, which are Go ADK keys outside the contract. The contract records content as gen_ai.input.messages and gen_ai.output.messages, with kagent.capture.*_truncated reporting truncation. The capture variable question is settled and belongs to #531; do not reopen it here.
Before starting
This needs a live trace. Everything above is read from generated documentation and source, and telemetry.md states that nothing yet compares emitted telemetry against the registry. Run the tracing guide on the kagent runtime and on one Python runtime, since the point is that they differ, and confirm kagent.app_name is genuinely absent rather than emitted from a path the source search missed.
Done when
- The correlation table splits by runtime, and a reader can tell which attributes their runtime emits without capturing a trace to find out.
-
kagent.app_nameis gone, or is shown with evidence that something emits it. -
a2a.task.id,enduser.id,kagent.invocation.segmentandkagent.runtimeare covered, includingkagent.runtimebeing absent on Python. - The span table matches alpha7, with
invocationremoved. - The capture warning names the contract attributes and marks
gcp.vertex.agent.*as Go ADK only. - Every claim was checked against a trace captured on the documented version.
-
observability/audit-prompts.mdgot the same pass.
- Ngôn ngữ chính
- TypeScript
- Star
- 21
- Fork
- 69
- Merge trung bình
- 23 giờ 53 phút
- Pull request đã merge (30 ngày)
- 83
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kagent-dev/website
-
Link Checker Report - kagent OSSĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
kagent-dev/website#579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Hold until GA: repoint kagent.dev navigation from 0.x to 1.xCó thể đã có người làm @Rachael-Graham đã nhận 16 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
kagent-dev/website#521 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug DocOps
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 18/100
kagent-dev/website#606 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Document session sharingĐang mởdocumentation kagent
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 60/100
kagent-dev/website#562 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
kagent-dev/website#539 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của kagent-dev/website
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
QuantumNous/new-api#7839 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug p2 triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getpaseo/paseo#7071 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
test: make the #3408 Claude OAuth token fixture obviously fake so secret scanners stop flagging itĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
code-yeongyu/senpi#3436 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
lingdojo/kana-dojo#32505 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày