miroir/crates/miroir-core/src
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
..
config P7.6: Implement OpenTelemetry tracing (disabled by default) 2026-04-19 10:15:39 -04:00
config.bak P0.2: Scaffold miroir-core crate 2026-04-18 20:57:47 -04:00
raft_proto P0: Fix clippy warnings and remove broken openraft dep for clean CI 2026-04-18 23:38:24 -04:00
task_store RRF merge: add tests, fix warnings, re-run benchmarks 2026-04-19 02:17:58 -04:00
anti_entropy.rs P12.OP1: Chaos-test cutover race window + hard refusal policy 2026-04-18 22:00:21 -04:00
api_error.rs Integrate MeilisearchError into proxy (IntoResponse, auth middleware) + telemetry 2026-04-19 05:21:09 -04:00
config.rs P7.6: Implement OpenTelemetry tracing (disabled by default) 2026-04-19 10:15:39 -04:00
error.rs P3.3: Implement Redis-backed TaskStore with plan §4 keyspace layout 2026-04-19 02:02:45 -04:00
lib.rs P2.5: Implement task ID reconciliation and /tasks endpoints 2026-04-19 07:46:49 -04:00
merger.rs P2.6: Complete Phase 2 DoD — dedup, live topology, field stripping, all 14 tests pass 2026-04-19 09:29:43 -04:00
migration.rs P12.OP4: Finalize score normalization validation — RRF τ=0.14, score τ=0.79 2026-04-19 02:40:54 -04:00
reshard.rs RRF merge: add tests, fix warnings, re-run benchmarks 2026-04-19 02:17:58 -04:00
router.rs RRF merge: add tests, fix warnings, re-run benchmarks 2026-04-19 02:17:58 -04:00
scatter.rs P7.6: Implement OpenTelemetry tracing (disabled by default) 2026-04-19 10:15:39 -04:00
schema_migrations.rs P3.4: Implement schema versioning system 2026-04-19 00:13:19 -04:00
task.rs P2.5: Implement task ID reconciliation and /tasks endpoints 2026-04-19 07:46:49 -04:00
task_pruner.rs Fix clippy warnings, improve test robustness, and clean up proxy code 2026-04-19 04:53:45 -04:00
task_registry.rs P2.5: Implement task ID reconciliation and /tasks endpoints 2026-04-19 07:46:49 -04:00
topology.rs RRF merge: add tests, fix warnings, re-run benchmarks 2026-04-19 02:17:58 -04:00