miroir/crates
jedarden 69e33a6744 P7.6: Implement OpenTelemetry tracing (disabled by default)
Add OTel distributed tracing support with zero overhead when disabled.

Configuration (plan §10):
- tracing.enabled: false (default, zero overhead)
- tracing.endpoint: "http://tempo.monitoring.svc:4317"
- tracing.service_name: "miroir"
- tracing.sample_rate: 0.1 (head-based sampling)

Span hierarchy:
- Parent: inbound request (POST /indexes/:index/search)
- Child: scatter plan construction
- Parallel children: one per node in covering set
- Child: merge operation

Resource attributes: service.name, service.version, host.name

When disabled (tracing.enabled: false), no OTel library calls are made.
Shutdown handler flushes pending traces before exit.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 10:15:39 -04:00
..
miroir-core P7.6: Implement OpenTelemetry tracing (disabled by default) 2026-04-19 10:15:39 -04:00
miroir-ctl P2.6: Complete Phase 2 DoD — dedup, live topology, field stripping, all 14 tests pass 2026-04-19 09:29:43 -04:00
miroir-proxy P7.6: Implement OpenTelemetry tracing (disabled by default) 2026-04-19 10:15:39 -04:00