Add Support for `gen_ai` semantic-convention breaking changes in v1.37.0

未关闭
#4,878 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

@EsraaKamel11 已经在做这个了。

开始于 2026年1月13日。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
python
领域
observability

调研方向

首先,将当前的 gen_ai 字段(包括 labels.gen_ai_prompt)与 OpenTelemetry semantic-conventions v1.37.0 版本进行比较。审查 PR 4731,并根据 SDK 版本 v1.39.1 验证其行为。当这些字段被正确摄取并遵循最新的 gen_ai 约定时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

feature-request
Is your feature request related to a problem?

The gen_ai fields are not using the latest semantic convention. It looks like this was supposed to be done in this PR https://github.com/open-telemetry/opentelemetry-python/pull/4731/changes#diff-25ace29f4af9b016a152aad40987138b245a5dcee698581ecdcb3fb106455b58 but using the latest sdk version v1.39.1, it appears the gen_ai fields are still using the only semantic convention (labels.gen_ai_prompt).

Describe the solution you'd like

In the v1.37.0 release https://github.com/open-telemetry/semantic-conventions/releases/tag/v1.37.0, it added breaking changers for gen_ai fields. Can we double check that the fields are properly ingested and follow the latest convention.

Describe alternatives you've considered

No response

Additional Context

No response

Would you like to implement a fix?

None

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

主要语言
Python
星标
2.7k
派生
1.1k
平均合并
3 天 12 小时
30 天内合并 PR
16

环境准备

从这里开始

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

open-telemetry/opentelemetry-python 的其他 Issue

查看 open-telemetry/opentelemetry-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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