WS-G: OpenTelemetry export (traces, metrics, logs)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YShymaPrXmc3KYRUg2HMSs
This commit is contained in:
ariandClaude Sonnet 5.5 committed 2026-10-15 18:37:40 -04:00
1 parent 2d57fb1a78
commit 2aeb9ae154
6 files changed
+1175 -25

No files matched your search

+7 -7
View File
@@ -86,13 +86,13 @@ Design: [`plan.md`](plan.md) · Review fixes: [`plan/review.md`](plan/review.md)
- [ ] **F9** Tests: tool list snapshot + each tool against fakes
### WS-G OTel · [card](plan/workstreams/WS-G-otel.md)
- [ ] **G1** `telemetry::init(cfg)`: OTLP grpc/http with headers. Resource has `service.name`, `service.version`, `host.name`. Returns a guard.
- [ ] **G2** `tracing` subscriber: fmt to stderr + `tracing-opentelemetry` layer when enabled
- [ ] **G3** Metrics poll loop feeds a snapshot. Observable gauges read it, so vanished series drop out.
- [ ] **G4** Metric set from `plan.md` with semconv attribute names, allowlists and the DEC-7 default scope
- [ ] **G5** Log export: journal follow + per-container docker follow, reconciled via the Docker events stream, with backoff
- [ ] **G6** Shutdown cancels tasks and flushes all providers
- [ ] **G7** `dev/otelcol.yaml` with a debug exporter, plus a devenv process to run it
- [x] **G1** `telemetry::init(cfg)`: OTLP grpc/http with headers. Resource has `service.name`, `service.version`, `host.name`. Returns a guard.
- [x] **G2** `tracing` subscriber: fmt to stderr + `tracing-opentelemetry` layer when enabled
- [x] **G3** Metrics poll loop feeds a snapshot. Observable gauges read it, so vanished series drop out.
- [x] **G4** Metric set from `plan.md` with semconv attribute names, allowlists and the DEC-7 default scope
- [x] **G5** Log export: journal follow + per-container docker follow, reconciled via the Docker events stream, with backoff
- [x] **G6** Shutdown cancels tasks and flushes all providers
- [x] **G7** `dev/otelcol.yaml` with a debug exporter, plus a devenv process to run it
## Phase 3 — Integration & hardening · [card](plan/workstreams/P3-integration.md)