TypeScript SDK: shutdownTelemetry, CI/CD integration, npm publish prep, TypeScript 6
18 files · 1,423+ · 394-

Implement shutdownTelemetry with OTel provider drain

2 files changed
  • index.ts Added shutdownTelemetry() — shuts down all active OTel providers, flushes pending spans, drains metric readers
  • shutdown.test.ts 113-line test suite for shutdown behavior and provider drain
  • shutdownTelemetry() gracefully drains all active OTel TracerProvider and MeterProvider instances. Waits for pending export batches to flush before returning. Tests verify drain timing and provider state after shutdown. instantiate behavioral
    2 files
    • index.ts
    • shutdown.test.ts

TypeScript CI/CD integration and npm publish prep

2 files changed
  • tsconfig.scripts.json New tsconfig for scripts (E2E client, etc.)
  • vitest.config.ts Updated vitest config for CI
  • TypeScript package wired into CI/CD. Package version aligned with Python SDK (0.1.0 → 0.3.18). Stryker configured to enforce 100% mutation kill threshold. TypeScript 6 and all npm deps upgraded to latest. baseline internal
    1 file
    • tsconfig.scripts.json

Kill window typeof-check mutation survivors

1 file changed
  • otel.test.ts 14-line update killing mutation survivors in node env window check
  • typeof window check in browser/node detection had surviving mutations due to test running only in jsdom. Added node environment tests to kill the survivors. qualify internal
    1 file
    • otel.test.ts