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