Initial Commit
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
# Tasks: enterprise-opentelemetry
|
||||
|
||||
## 1. Scaffold
|
||||
|
||||
- [x] 1.1 `universal/platform/opentelemetry/`; 100/100/100/100; guard tests; CLAUDE/README/FOLDERS.
|
||||
|
||||
## 2. Errors + schemas
|
||||
|
||||
- [x] 2.1 `src/error-codes.ts` — `OTEL.*` codes.
|
||||
- [x] 2.2 Zod schemas for wire-format types.
|
||||
|
||||
## 3. Constants + types
|
||||
|
||||
- [x] 3.1 `src/constants/index.ts`.
|
||||
- [x] 3.2 `src/types/common.ts` — all enums + union shapes.
|
||||
|
||||
## 4. Utils
|
||||
|
||||
- [x] 4.1 `src/utils/id-generator.ts` — `generateSpanId`, `generateTraceId`, `isValidSpanId`, `isValidTraceId`, `hrTimeMs`.
|
||||
|
||||
## 5. Context
|
||||
|
||||
- [x] 5.1 `src/core/context/context.ts` — `Context`, `ContextManager`, span-in-context helpers.
|
||||
|
||||
## 6. Tracer + span
|
||||
|
||||
- [x] 6.1 `src/core/span/span.ts` — `Span` class.
|
||||
- [x] 6.2 `src/core/tracer/tracer.ts` — `Tracer`, `TracerProvider`.
|
||||
|
||||
## 7. Meter
|
||||
|
||||
- [x] 7.1 `src/core/meter/meter.ts` — `Counter`, `Gauge`, `Histogram`, `Meter`, `MeterProvider`.
|
||||
|
||||
## 8. Propagation
|
||||
|
||||
- [x] 8.1 `src/propagation/baggage/baggage.ts` — full baggage lifecycle + W3C propagator.
|
||||
- [x] 8.2 `src/propagation/w3c/w3c.ts` — W3C Trace Context propagator.
|
||||
|
||||
## 9. Exporters
|
||||
|
||||
- [x] 9.1 `src/exporters/console/console.ts` — `ConsoleSpanExporter`.
|
||||
- [x] 9.2 `src/exporters/memory/memory.ts` — `InMemorySpanExporter`.
|
||||
|
||||
## 10. Error bridge
|
||||
|
||||
- [x] 10.1 `src/error-bridge/error-bridge.ts` — installs global `SuaveplanError` interceptor recording span events.
|
||||
|
||||
## 11. `@opentelemetry/api` compatibility
|
||||
|
||||
- [x] 11.1 Global-provider registration on import for drop-in use.
|
||||
|
||||
## 12. Docs / barrel / subpath exports / README
|
||||
|
||||
## 13. Benchmarks
|
||||
|
||||
- [x] 13.1 Span start/end hot path; meter counter/histogram record hot path.
|
||||
|
||||
## 14. Ship gate
|
||||
|
||||
- [x] 14.1 Verification sequence; fold + archive.
|
||||
Reference in New Issue
Block a user