miroir/crates/miroir-core
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
..
benches P12.OP4: Implement dfs_query_then_fetch for cross-shard comparability 2026-04-19 03:08:18 -04:00
migrations P3.4: Implement schema versioning system 2026-04-19 00:13:19 -04:00
src P7.6: Implement OpenTelemetry tracing (disabled by default) 2026-04-19 10:15:39 -04:00
tests P2.2: Implement write path with primary key validation, shard injection, and two-rule quorum 2026-04-19 06:48:30 -04:00
Cargo.toml P2.5: Implement task ID reconciliation and /tasks endpoints 2026-04-19 07:46:49 -04:00