Otel: Standardize key constants
維護者通常 1 天內回覆
評估
這個 Issue 還沒有評估資料。
描述
Is your feature request related to a problem?
The same concept goes to Sentry under different keys and types, so one filter never matches all signals.
| Concept | Keys in use today |
|---|---|
| Org / project | tenant.org_id, kaapi.organization_id, gen_ai.request.organization_id; logs: org_id and organization_id |
| Job id | llm.job_id, guardrails.job_id, collection.job_id |
| Provider / model | llm.provider, llm.request.model next to gen_ai.provider.name, gen_ai.request.model |
| Request id | kaapi.trace_id vs correlation_id |
| Metric names | llm.call.total / llm.call.errors vs http.server.request.count / .error |
| No namespace | completion_type, route_category |
Describe the solution you'd like
- Add
app/core/telemetry/constants.pywith one name per concept (tenant.org_id,tenant.project_idas strings,job.id,correlation_id,llm.completion_type,http.route_category, metric names). - Take GenAI keys from
opentelemetry.semconv._incubating.attributes.gen_ai_attributes. - Use these constants everywhere (spans, tags, metrics,
log_context); dropkaapi.*andgen_ai.request.organization_id/project_id. - Add the rule to
docs/wiki/cross-cutting/observability.md.
Before merging, update the Sentry dashboards and alerts that use the old keys. Module and API version tags are tracked in #1305.
- 主要語言
- Python
- 星號
- 18
- 分支
- 11
- 平均合併
- 2 天 2 小時
- 30 天內合併 PR
- 33
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
ProjectTech4DevAI/kaapi-backend 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
維護者通常 1 天內回覆
-
Sentry: Add module and version tags可能已有人在做 @vprashrex 於 1 天前認領。 未關閉
ProjectTech4DevAI/kaapi-backend#1305 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Observability: Cron enhancements可能已有人在做 @vprashrex 於 2 天前認領。 未關閉
ProjectTech4DevAI/kaapi-backend#1304 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Chabot: Server-side chatbot state management可能已有人在做 @Ayush8923 於 5 天前認領。 未關閉
ProjectTech4DevAI/kaapi-backend#1278 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Monitoring: Enhance alerting and security可能已有人在做 @Ayush8923 於 8 天前認領。 未關閉infrastructure
ProjectTech4DevAI/kaapi-backend#1271 · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 ProjectTech4DevAI/kaapi-backend 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 75/100
google-agentic-commerce/AP2#388 ·
-
area:codegen backend:cuda backend:hip bug direction:input
難度 2/5 1-3 小時 新手友好度 78/100
CrossGL/crosstl#3061 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
rlaope/oh-my-hermes#2304 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
mochan-tk/agentic-dev-kit-for-codex#64 ·
維護者通常 1 天內回覆
-
bug docs performance
難度 1/5 1 小時以內 新手友好度 85/100
維護者通常 3 天內回覆