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 摘要。