SameerMesiah97 opened a new pull request, #68521: URL: https://github.com/apache/airflow/pull/68521
**Description** This change adds a `batch_trigger_creation_duration` timing metric to measure the total time spent creating pending triggers during a single invocation of `TriggerRunner.create_triggers()`. The metric is emitted only when trigger creation work is performed. **Rationale** Trigger creation occurs on the triggerer event loop. During periods of high trigger creation volume, processing large batches of pending triggers may occupy the event loop for extended periods, but this time is not currently observable. This metric provides visibility into the cost of trigger creation and helps identify situations where large creation batches contribute to triggerer latency. **Tests** Added a unit test verifying that the `batch_trigger_creation_duration` metric is emitted when pending triggers are successfully created. **Backwards Compatibility** This change is additive only and does not modify trigger execution behavior, lifecycle semantics, or public APIs. -- 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]
