Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Otel: Standardize key constants

未关闭
#1,294 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@vprashrex 已经在做这个了。

开始于 2026年10月20日。

  • #1306 来自 @vprashrex —— 已关闭,未合并

评估

这个 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.py with one name per concept (tenant.org_id, tenant.project_id as 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); drop kaapi.* and gen_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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ProjectTech4DevAI/kaapi-backend 的其他 Issue

查看 ProjectTech4DevAI/kaapi-backend 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。