jason810496 opened a new pull request, #71815:
URL: https://github.com/apache/airflow/pull/71815

   - depends on: #71704
   - split from: #71813
   
   Every `DBDagBag` emitted its cache counters under `api_server.dag_bag.*`, so 
once the scheduler gained a cache in #71704 its traffic was counted against the 
API server's series. An operator could not tell the two components apart, and 
the API server's numbers became wrong rather than merely incomplete.
   
   Each caller now passes the namespace it reports under, and a cache built 
without one fails at construction rather than emitting a partial metric name 
mid-request. The scheduler reports under `scheduler.dag_bag.*`.
   
   The metrics registry check matched dynamic names only by the static prefix 
ahead of their first variable, which cannot express a name assembled from a 
caller-supplied prefix; it now matches on all static parts wherever the 
variable sits. Supersedes #71276.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [x] Yes — Claude Code (Opus 5)
   
   Generated-by: Claude Code (Opus 5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to