Unpin opentelemetry-api in opentelemetry-sdk
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 42/100
Rechercherichtung
Start with the dependency declarations in opentelemetry-sdk/pyproject.toml and opentelemetry-semantic-conventions/pyproject.toml, then inspect the SDK API method implementations and the CI configuration. The issue also points to #5877 for the typing pattern and related issues #5886 and #5877 for context. Done means relaxing both API version bounds, accepting unknown keyword arguments in SDK implementations, and adding CI coverage for an older SDK with the main API.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Is your feature request related to a problem?
opentelemetry-sdk currently pins an exact opentelemetry-api version (opentelemetry-api == 1.X.Y):
https://github.com/open-telemetry/opentelemetry-python/blob/47ee451a1df869362106a36640a7ab0e2245a1a2/opentelemetry-sdk/pyproject.toml#L29
When instrumentation or third-party packages require a newer opentelemetry-api, users are forced to upgrade opentelemetry-sdk in lockstep or hit dependency conflicts. #5886 unblocks relaxing this pin by making API ABCs tolerate unknown future kwargs in older SDK subclasses.
Describe the solution you'd like
-
Change
opentelemetry-apifrom==to>=(with< 2.0) in bothopentelemetry-sdk/pyproject.tomlandopentelemetry-semantic-conventions/pyproject.toml. Both need to change becauseopentelemetry-sdkpinsopentelemetry-semantic-conventions, which also pins an exactopentelemetry-apiversion:"opentelemetry-api >= 1.46.0.dev, < 2.0",On each release, the release scripts will continue bumping the lower bound to match the SDK release (e.g.
>= 1.46.0, < 2.0, then>= 1.47.0, < 2.0), so older SDKs work with newer1.xAPIs while new SDKs still require at least their matching API version. -
Add
**_kwargs: Unpack[Empty](see #5877) toopentelemetry-sdk's API method implementations so the SDK natively ignores unknown future kwargs withoutSignatureCompatABCwrapper overhead while keeping static type-checking strict. -
Add a CI test running an older released
opentelemetry-sdkagainstmain'sopentelemetry-api.
Describe alternatives you've considered
Instead of bumping the >= lower bound on every release, we could keep a fixed minimum opentelemetry-api version across releases (only bumping it when the SDK actually uses new API symbols, as originally proposed in #1924) so newer SDKs also work with older APIs (#4993). That would be nice eventually, but requires testing opentelemetry-sdk against older PyPI opentelemetry-api versions in CI (tox.ini has {oldest,latest}, though monorepo deps currently install editable from the repo).
Additional Context
Related: #1924, #4993, #5392, #5877, #5886
Would you like to implement a fix?
Yes
Tip
No response
- Vorherrschende Sprache
- Python
- Sterne
- 2.7k
- Forks
- 1.1k
- Ø Merge
- 3 T. 12 Std.
- Gemergte PRs (30 T.)
- 16
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus open-telemetry/opentelemetry-python
-
References to Archived open-telemetry/otepsEvtl. vergeben @RjyavardhanSingh hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
open-telemetry/opentelemetry-python#5984 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Autoconfiguration rejects OTEL_EXPORTER_OTLP_PROTOCOL=http/jsonEvtl. vergeben @WendeelMarinho hat das vor 2 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
open-telemetry/opentelemetry-python#5981 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
MeterProvider raises ValueError on empty or uppercase OTEL_METRICS_EXEMPLAR_FILTEREvtl. vergeben @bishalde hat das vor 8 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
open-telemetry/opentelemetry-python#5948 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
W3CBaggagePropagator drops a list-member over 4096 bytes that W3C Baggage requires it to propagateEvtl. vergeben @codedbyadiiii hat das vor 20 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
open-telemetry/opentelemetry-python#5913 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
otel.sdk.processor.{span,log}.queue.capacity uses synchronous UpDownCounter recorded once in __init__Evtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
open-telemetry/opentelemetry-python#5891 ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in open-telemetry/opentelemetry-python
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug improve content
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
opensafely/documentation#2102 ·
Maintainer antworten meist innerhalb von 1 Tag
-
difficulty:1 documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
MakazhanAlpamys/Soup#3533 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
onyx-dot-app/onyx#18730 ·
Maintainer antworten meist innerhalb von 1 Tag