Launched TypeScript package @undef/telemetry with 18 modules, 742 tests, and 100% mutation kill score
55 files · 6,508+

TypeScript package @undef/telemetry

28 files changed
  • index.ts Public surface exported as @undef/telemetry (111 lines)
  • backpressure.ts Backpressure control module (66 lines)
  • cardinality.ts Cardinality enforcement module (79 lines)
  • config.ts Configuration module (123 lines)
  • context.ts Context propagation module (118 lines)
  • exceptions.ts Exception types module (24 lines)
  • health.ts Health check module (72 lines)
  • logger.ts Logger module (142 lines)
  • metrics.ts Metrics module (54 lines)
  • otel.ts OTel SDK integration module (88 lines)
  • pii.ts PII redaction module (206 lines)
  • propagation.ts W3C propagation module (94 lines)
  • resilience.ts Resilience/retry module (140 lines)
  • runtime.ts Runtime detection module (77 lines)
  • sampling.ts Sampling module (50 lines)
  • sanitize.ts Sanitize utilities (8 lines)
  • schema.ts Schema/event name validation module (82 lines)
  • slo.ts SLO tracking module (84 lines)
  • testing.ts Testing utilities module (54 lines)
  • tracing.ts Tracing module (137 lines)
  • package.json Package manifest with Vitest, Stryker, ESLint, Prettier, TypeScript 5.9 (82 lines)
  • tsconfig.json TypeScript compiler config
  • tsconfig.test.json TypeScript config for tests
  • vitest.config.ts Vitest test runner config (24 lines)
  • stryker.config.mjs Stryker mutation testing config (40 lines)
  • eslint.config.js ESLint config (34 lines)
  • .prettierrc Prettier formatting config
  • .gitignore TypeScript package gitignore
  • Added typescript/ directory with a complete TypeScript implementation of the undef.telemetry Python package — 18 source modules covering backpressure, cardinality, config, context, exceptions, health, logger, metrics, otel, pii, propagation, resilience, runtime, sampling, schema, slo, testing, tracing instantiate architectural
    6 files
    • index.ts
    • config.ts
    • logger.ts
    • tracing.ts
    • metrics.ts
    • resilience.ts
  • Public surface exported via typescript/src/index.ts as @undef/telemetry instantiate behavioral
    1 file
    • index.ts
  • Build toolchain: Vite, TypeScript 5.9, ESLint + Prettier, Stryker for mutation testing baseline internal
    4 files
    • package.json
    • vitest.config.ts
    • stryker.config.mjs
    • eslint.config.js

742-test suite with 100% V8 coverage and 100% Stryker mutation kill score

27 files changed
  • backpressure.test.ts Backpressure unit tests (132 lines)
  • cardinality.test.ts Cardinality unit tests (240 lines)
  • config.test.ts Config unit tests (238 lines)
  • context.test.ts Context unit tests (214 lines)
  • exceptions.test.ts Exceptions unit tests (38 lines)
  • health.test.ts Health unit tests (96 lines)
  • logger.test.ts Logger unit tests (337 lines)
  • metrics.test.ts Metrics unit tests (57 lines)
  • pii.test.ts PII unit tests (301 lines)
  • propagation.test.ts Propagation unit tests (236 lines)
  • resilience.test.ts Resilience unit tests (459 lines)
  • runtime.test.ts Runtime unit tests (146 lines)
  • sampling.test.ts Sampling unit tests (96 lines)
  • sanitize.test.ts Sanitize unit tests (56 lines)
  • schema.test.ts Schema unit tests (135 lines)
  • slo.test.ts SLO unit tests (245 lines)
  • testing.test.ts Testing utilities unit tests (57 lines)
  • tracing.test.ts Tracing unit tests (264 lines)
  • otel.test.ts OTel SDK interop integration tests (258 lines)
  • pipeline.test.ts Full telemetry pipeline integration tests (346 lines)
  • cardinality.test.ts Property-based cardinality tests (55 lines)
  • config.test.ts Property-based config tests (93 lines)
  • context.test.ts Property-based context tests (76 lines)
  • pii.test.ts Property-based PII tests (70 lines)
  • sampling.test.ts Property-based sampling tests (57 lines)
  • sanitize.test.ts Property-based sanitize tests (75 lines)
  • schema.test.ts Property-based schema tests (105 lines)
  • 742 tests across unit, integration, and property-based test suites (Vitest + fast-check) qualify internal
    5 files
    • logger.test.ts
    • resilience.test.ts
    • otel.test.ts
    • pipeline.test.ts
    • cardinality.test.ts
  • 100% V8 coverage and 100% Stryker mutation kill score across all 18 source files qualify internal
    2 files
    • stryker.config.mjs
    • vitest.config.ts
  • Property-based tests in typescript/tests/property/ covering cardinality, config, context, PII, sampling, sanitize, and schema modules qualify internal
    7 files
    • cardinality.test.ts
    • config.test.ts
    • context.test.ts
    • pii.test.ts
    • sampling.test.ts
    • sanitize.test.ts
    • schema.test.ts
  • Integration tests: OTel SDK interop (otel.test.ts), full telemetry pipeline (pipeline.test.ts) qualify behavioral
    2 files
    • otel.test.ts
    • pipeline.test.ts