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

オープン
#4,878 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@EsraaKamel11 がすでに取り組んでいます。

2026年1月13日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
observability

調査の方向性

まず、labels.gen_ai_prompt を含む現在の gen_ai フィールドを、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時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

open-telemetry/opentelemetry-python のほかの issue

open-telemetry/opentelemetry-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。