miroir/crates/miroir-proxy/src
jedarden 5f9ee20eeb P7.1: Core metrics families acceptance tests
Add accessor methods for request metrics (duration, total) to enable
testing of histogram/counter metrics that require samples to appear
in Prometheus output.

Fix p7_1_core_metrics.rs test to:
- Use new accessor methods to record request metric samples
- Check for HELP/TYPE metadata in addition to data lines
- Relax histogram bucket format check to verify non-zero count

All 18 core plan §10 metrics are verified:
- Requests: duration, total, in_flight
- Node health: healthy, request_duration, errors_total
- Shards: coverage, degraded_shards_total, distribution
- Tasks: processing_age, total, registry_size
- Scatter-gather: fan_out_size, partial_responses_total, retries_total
- Rebalancer: in_progress, documents_migrated_total, duration_seconds

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 02:29:28 -04:00
..
routes P5.7 §13.7: Fix alias admin API routes and reorganize alias module 2026-05-23 01:54:05 -04:00
admin_session.rs P10.4: ADMIN_SESSION_SEAL_KEY cookie sealing with XChaCha20-Poly1305 2026-04-19 17:18:39 -04:00
auth.rs P2.7: Add test coverage for /health and /version dispatch-exempt endpoints 2026-05-22 15:26:49 -04:00
client.rs P3: Task Registry + Persistence — 14-table SQLite schema, Redis mirror, Helm validation 2026-04-24 15:50:20 -04:00
error.rs Integrate MeilisearchError into proxy (IntoResponse, auth middleware) + telemetry 2026-04-19 05:21:09 -04:00
lib.rs P10.5: scoped Meilisearch key rotation with multi-pod coordination 2026-04-20 07:33:29 -04:00
main.rs P5.7 §13.7: Fix alias admin API routes and reorganize alias module 2026-05-23 01:54:05 -04:00
middleware.rs P7.1: Core metrics families acceptance tests 2026-05-23 02:29:28 -04:00
otel.rs P7.6: Implement OpenTelemetry tracing (disabled by default) 2026-04-19 10:15:39 -04:00
scoped_key_rotation.rs P3: Task Registry + Persistence — 14-table SQLite schema, Redis mirror, Helm validation 2026-04-24 15:50:20 -04:00