Repository navigation
add bundle_name tags to missing dag processor metrics - #73717
Merged
msumit merged 13 commits intoSep 29, 2026
Merged
Conversation
Dag bundles can contain the same relative file path. Without bundle attribution, timeout counts for those files collapse into one metric series.
Bundle names can contain characters that require normalization before they are used as metric tags. The regression case ensures the timeout metric keeps the same tag format as other Dag processing metrics.
samraj2k
marked this pull request as ready for review
September 25, 2026 10:33
samraj2k
requested review from
amoghrajesh,
ashb,
ephraimbuddy,
jedcunningham and
potiuk
as code owners
September 25, 2026 10:33
msumit
reviewed
Sep 27, 2026
msumit
reviewed
Sep 27, 2026
Process counts for files with the same relative path can collapse across bundles. Consistent bundle tags at every process lifecycle emission keep those series distinct.
…eouts-bundle-name
The metric contract requires distinct bundle tags for identical relative paths, regardless of the order in which the packets are emitted.
msumit
approved these changes
Sep 28, 2026
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
|
great 🚀 |
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.
Summary
Currently, when the metric for processor_timeouts or processes is emitted, it does not carries value for bundle name. If a same filepath is present in two bundles, say 'dag_a.py`, then the metric is confusing. Thus, this PR adds the tag of bundle_name to the existing metric(s)
Test Plan
Tested in local
Local verification
breeze run --skip-image-upgrade-check pytest airflow-core/tests/unit/dag_processing/test_manager.py -xq: 175 passed, 5 skipped, 1 warning. The skipped tests require PostgreSQL; this run used SQLite.prek run --from-ref upstream/main --stage pre-commit: passed, including Ruff, mypy, and the metrics registry check.prek run --from-ref upstream/main --stage manual --skip compile-ui-assets-dev --skip view-skill-eval --skip run-skill-eval-codex: passed.A controlled runtime probe exercised Airflow's processor timeout path through the configured StatsD backend and a local UDP receiver. For the same
file_path, it captured:Was generative AI tooling used to co-author this PR?
Generated-by: Codex (GPT-6) following the guidelines