Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,15 @@ def test_config_priorities(
airflow_conf_port,
expected_endpoint,
expected_exporter_module,
monkeypatch,
):
# Clear any ambient OTEL_* vars so the case only sees its own provided_env_vars.
# CI runners (e.g. RunsOn) export OTEL_EXPORTER_OTLP_ENDPOINT, which otherwise wins
# over the Airflow config host/port and makes the config-priority cases fail.
for name in list(os.environ):
if name.startswith("OTEL_"):
monkeypatch.delenv(name, raising=False)

with env_vars(provided_env_vars):
otel_env_config = load_metrics_env_config()

Expand Down
Loading