Files
tasks/api/taskqueue/v1
Shahab TajikandGitHub 70b89c107d Improve task-dispatch-latency metric (#9395)
## What changed?
Emit task dispatch latency metric in matching_engine with the following
improvements:
- latency includes history calls
- latency is not reset in case of sync-match forwards
- metric is not lost for backlogged task in new matcher
- origin partition is preserved during forward and used at the partition
tag in the metric (keeping existing behavior)
- task and poll forwarding do not cause duplicate emits, keeping
existing behavior

Also, fixed the following unrelated bugs that surfaced while testing the
metric:
- Query priority is not lost when forwarded.

## Why?
Fixes bugs.

## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [x] added new functional test(s)

## Potential risks
None.
2026-03-16 12:56:19 -07:00
..