feat: adds support for OpenTelemetry standard environment variables f…#56634
Merged
potiuk merged 3 commits intoapache:mainfrom Oct 16, 2025
Merged
feat: adds support for OpenTelemetry standard environment variables f…#56634potiuk merged 3 commits intoapache:mainfrom
potiuk merged 3 commits intoapache:mainfrom
Conversation
2063012 to
ae0a2b7
Compare
…or configuration.
ae0a2b7 to
b1b8dd0
Compare
potiuk
reviewed
Oct 16, 2025
airflow-core/docs/administration-and-deployment/logging-monitoring/traces.rst
Outdated
Show resolved
Hide resolved
potiuk
reviewed
Oct 16, 2025
airflow-core/docs/administration-and-deployment/logging-monitoring/metrics.rst
Outdated
Show resolved
Hide resolved
potiuk
approved these changes
Oct 16, 2025
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 17, 2025
apache#56634) * feat: adds support for OpenTelemetry standard environment variables for configuration. * Update airflow-core/docs/administration-and-deployment/logging-monitoring/metrics.rst * Update airflow-core/docs/administration-and-deployment/logging-monitoring/traces.rst --------- Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
abdulrahman305 bot
pushed a commit
to abdulrahman305/airflow
that referenced
this pull request
Oct 19, 2025
apache#56634) * feat: adds support for OpenTelemetry standard environment variables for configuration. * Update airflow-core/docs/administration-and-deployment/logging-monitoring/metrics.rst * Update airflow-core/docs/administration-and-deployment/logging-monitoring/traces.rst --------- Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
TyrellHaywood
pushed a commit
to TyrellHaywood/airflow
that referenced
this pull request
Oct 22, 2025
apache#56634) * feat: adds support for OpenTelemetry standard environment variables for configuration. * Update airflow-core/docs/administration-and-deployment/logging-monitoring/metrics.rst * Update airflow-core/docs/administration-and-deployment/logging-monitoring/traces.rst --------- Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The current OpenTelemetry implementation has a fairly rigid configuration specification for endpoint host/port and export interval. While this is probably okay for most configurations, there are cases in which endpoints do not conform with the standard implied by Airflow's implementation. See https://prometheus.io/docs/guides/opentelemetry/#send-opentelemetry-metrics-to-the-prometheus-server for an example of how the API URL can stray from the basic "/v1/metrics" route, yet still be entirely valid.
Instead of adding new configuration values to the metrics and traces sections, this PR adds transparent support for all standard OpenTelemetry environment variables (so far) that would otherwise be overridden by Airflow's configuration.
This change includes the support for: