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

Abierto
#4,952 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
28/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

Empieza revisando cómo se define y publica actualmente el paquete semantic-conventions de PyPI y, a continuación, sigue dónde se agrupan los atributos estables, en incubación y obsoletos. Compara esa estructura con los paquetes propuestos opentelemetry-semconv y opentelemetry-semconv-unstable. Se considera completado cuando se hayan acordado los límites de los paquetes, el proceso de obsolescencia y la política de versionado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
2.7k
Forks
1.1k
Merge medio
3 d 12 h
PR fusionados (30 d)
16

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de open-telemetry/opentelemetry-python

Todos los issues de open-telemetry/opentelemetry-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.