miroir/crates
jedarden c8bc21bc71 feat(multi-search): add metrics recording to multi-search endpoint (P5.11 §13.11)
Add missing Prometheus metrics to the /multi-search endpoint:
- miroir_multisearch_queries_per_batch: histogram tracking query count per batch
- miroir_multisearch_batches_total: counter for total batches processed
- miroir_multisearch_partial_failures_total: counter for batches with >=1 failed query

The core MultiSearchExecutor and HTTP endpoint were already implemented.
This commit completes the observability requirements from plan §13.11.

All acceptance criteria covered by existing tests:
- 5-query batch: test_five_query_batch_all_complete
- Parallel execution: test_slow_query_doesnt_block_fast_queries
- 100-query batch: test_large_batch_completes
- Partial failure: test_partial_failure_one_error

Closes: miroir-uhj.11

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 15:25:28 -04:00
..
miroir-core feat(tenant): integrate tenant affinity into proxy request flow (P5.15 §13.15) 2026-05-24 15:21:36 -04:00
miroir-ctl docs(miroir-ctl): add subcommand runbooks and help text (P11.4, miroir-uyx.4) 2026-05-24 11:47:36 -04:00
miroir-proxy feat(multi-search): add metrics recording to multi-search endpoint (P5.11 §13.11) 2026-05-24 15:25:28 -04:00