You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change Python OTEL configuration to environment variables #11878
This implementation means that the opentelemetry package must be installed before launching a python application via aspire and you cannot have a linked python environment sub-resource.
Describe the solution you'd like
Instead, the environment variables should be passed along for the exporter configurations of Metrics, Logging and Traces.
The existing OTEL_EXPORTER_OTLP_ENDPOINT (http://localhost:4317 by default) environment variable should be picked up, along with OTEL_EXPORTER_OTLP_INSECURE (false by default)
Also, this should follow the same pattern as the .NET projects and be part of Service Defaults, or at least be optional. Some production apps would have an existing exporter like the Azure or Prometheus exporter and having Aspire suddenly override this would be surprising.
Activity
tonybaloney commentedon Oct 7, 2025
Also, this should follow the same pattern as the .NET projects and be part of Service Defaults, or at least be optional. Some production apps would have an existing exporter like the Azure or Prometheus exporter and having Aspire suddenly override this would be surprising.
davidfowl commentedon Oct 15, 2025
This is "fixed". Service defaults work will be part of the python template #11865