opentelemetry-configuration: provide a way for downstream distribution to update exporter configurations
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
- 18/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- python
- Bereich
- devtools, observability
Rechercherichtung
This is an API design question, not a ready patch: the proposal adds an optional callback to configure_sdk() and a call inside _OTelSDKConfigurator._configure. Start by reading how the declarative gRPC exporter factory builds its channel_options, and check whether maintainers have accepted a hook like this. Done means a maintainer decision on the API shape, followed by a reviewed design.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Downstream distributions need a way to customize the built-in OTLP exporters when users configure the SDK through declarative configuration. Some of the arguments of our exporters are not exposed as environment variable and then configuration keys. On example of this is the channel_options GRPC exporters use to set the user agent (via grpc.primary_user_agent).
The declarative gRPC factory has no way to supply that constructor argument.
Java provides a related declarative exporter customizer Service Provider Interface (SPI) that receives an already-created exporter and can return a replacement.
Would an optional pre-construction callback on configure_sdk() fit the declarative configuration API? The callback could receive the exporter class and the constructor options derived from the configuration file, then return updated options.
configure_sdk(config, otlp_exporter_options=customize_exporter_options)
The callback would have this proposed signature:
def customize_exporter_options(
# types are from exporters not from configuration models
exporter_type: type[SpanExporter] | type[MetricExporter] | type[MetricReader] | type[LogRecordExporter],
options: Mapping[str, Any],
) -> Mapping[str, Any]:
...
This is supposed to be called by distributions in the the ovveride of _OTelSDKConfigurator._configure.
If accepted I would implement it.
- 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