Split semantic conventions package to two to publish stable as 1.x

未關閉
#4,952 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
28/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python

研究方向

首先檢查目前的 semantic-conventions PyPI 套件是如何定義與發佈的,然後追蹤穩定、孵化中和已棄用屬性的分組位置。將該結構與擬議的 opentelemetry-semconv 和 opentelemetry-semconv-unstable 套件進行比較。當套件邊界、棄用路徑和版本策略達成共識後,即視為完成。

由索引模型根據 Issue 內容生成。

描述

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

Currently, there is one semantic-conventions package with stable and incubating attributes in it. FWIU, there are many deprecated attributes as well inside it from before the concept of incubating was introduced.

When writing instrumentation that wants to only depend on 1.x artifacts, it would be nice if semconv could still be imported.

https://github.com/connectrpc/connect-python/pull/150/changes#diff-e00c59ab50329e61f6ae3512806ae2e2c4e4709ea93571fb5b94354e1bbf6e65

Describe the solution you'd like

I suspect the current semantic-conventions package may not want to be repurposed since it's used too much, even though it's not 1.x. In that case, I propose

  • Deprecate opentelemetry-semantic-conventions pypi package
  • Add opentelemetry-semconv pypi package which only has stable conventions. Release as 1.x (possibly align the version with OTel spec, or not)
  • Add opentelemetry-semconv-unstable pypi package that includes incubating. Using _ to extra-inforce these are unstable could make sense, or the fact that there is unstable in the artifact name could be enough. This artifact is never 1.x.
Describe alternatives you've considered

The current semantic-conventions pypi package could be reworked to only include current, stable attributes. Any user using non-stable attributes would need to migrate. This is fair since it's not 1.x but maybe too destabilizing to the ecosystem

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