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 天内回复
-
Rumi: Explore features for teachers可能已有人在做 @Prajna1999 于 1 天前认领。 未关闭
ProjectTech4DevAI/kaapi-backend#1310 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Evaluation: Structured dataset for validators可能已有人在做 @Prajna1999 于 1 天前认领。 未关闭
ProjectTech4DevAI/kaapi-backend#1309 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Sentry: Add module and version tags可能已有人在做 @vprashrex 于 4 天前认领。 未关闭
ProjectTech4DevAI/kaapi-backend#1305 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Observability: Cron enhancements可能已有人在做 @vprashrex 于 5 天前认领。 未关闭
ProjectTech4DevAI/kaapi-backend#1304 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 ProjectTech4DevAI/kaapi-backend 的全部 Issue
相似的 Issue
-
filesystem: `file://C:/...` bucket_url is read as a UNC share named `C:` and silently lists no files未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
comp/desktop desktop/shell os/windows P3 tool/file type/bug
难度 2/5 1-3 小时 新手友好度 76/100
NousResearch/hermes-agent#145928 ·
维护者通常 1 天内回复
-
integration:coding-agents
难度 1/5 1 小时以内 新手友好度 83/100
vectorize-io/hindsight#6151 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
FormalLanguageConstrainedPathQuerying/FLPQ_Data#174 ·
维护者通常 1 天内回复
-
[VLM] granite_vision preset produces empty output and runs ~3× slower with Granite Vision 3.3-2B than with Granite Vision 4.1-4B可能已有人在做 @prassu017 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 74/100
docling-project/docling#5068 · 4 条评论 ·
维护者通常 1 天内回复