Danijel Martinek
76870816d1
docs(plan): OpenTelemetry migration (5 phases, ~30 tasks, ~25 commits)
Implementation plan for the spec at docs/superpowers/specs/2026-05-11-
opentelemetry-migration-design.md. Five phases:
- Phase 1: OTel SDK infrastructure (resource builder + Sentry-as-exporter
bridge + NodeSDK init helper + ESLint allowlist for OTel SDK packages).
No behavior swap yet.
- Phase 2 (TDD): OtelTracer impl using @opentelemetry/api; bind-sentry-
instrumentation renamed to bind-otel-instrumentation with deprecation
alias; delete SentryTracer.
- Phase 3 (TDD): OtelLogger impl using @opentelemetry/api-logs;
LogRecordProcessor wired into init helper; delete SentryLogger.
Breadcrumbs become span events; setUser sets user.id span attribute.
- Phase 4 (TDD): New IMetrics interface + Noop/Otel/Recording impls;
MetricsProtocol added to bind-protocols; BindContext.metrics? optional
field. Sentry metrics exporter deferred (experimental).
- Phase 5 (TDD): HTTP/undici/pg auto-instrumentations; PII scrub
processors (PiiScrubSpanProcessor + PiiScrubLogRecordProcessor) run
FIRST in OTel pipeline; delete sentry/scrub.ts + orphaned init files;
core-testing/setup/no-sentry.ts → no-instrumentation.ts (mocks both
Sentry and OTel SDK); ADR-017 + ADR-014 status header; doc refreshes.
Total: ~30 tasks across 6 phases (including Phase 0 read-first), ~25
expected commits.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 11:15:33 +02:00
..
2026-05-11 11:15:33 +02:00
2026-05-08 00:28:22 +02:00
2026-05-11 11:04:37 +02:00