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

Offen
#4,952 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
28/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python

Rechercherichtung

Beginne damit, zu prüfen, wie das aktuelle semantic-conventions PyPI-Paket definiert und veröffentlicht wird, und verfolge anschließend, wo stabile, sich in der Inkubation befindliche und veraltete Attribute gruppiert werden. Vergleiche diese Struktur mit den vorgeschlagenen Paketen opentelemetry-semconv und opentelemetry-semconv-unstable. Die Aufgabe ist abgeschlossen, wenn die Paketgrenzen, der Weg zur Stilllegung und die Versionierungsrichtlinie vereinbart sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
2.7k
Forks
1.1k
Ø Merge
3 T. 12 Std.
Gemergte PRs (30 T.)
16

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus open-telemetry/opentelemetry-python

Alle Issues in open-telemetry/opentelemetry-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.