Fixed three TypeScript logger bugs, achieved 100% coverage, and excluded Stryker sandbox from coverage
11 files · 165+ · 71-

Three TypeScript logger bug fixes

2 files changed
  • logger.ts Fixed static isBrowser check, stale config reference, and Node.js write hook (62 lines changed)
  • logger.test.ts Logger tests expanded to cover all three bug scenarios (123 lines changed)
  • Fixed isBrowser being evaluated once at module load (static) instead of per-call, causing incorrect behavior in hybrid environments remediate behavioral
    1 file
    • logger.ts
  • Fixed stale config reference where the logger captured config at initialization rather than reading it fresh on each call remediate internal
    1 file
    • logger.ts
  • Fixed Node.js write hook not functioning correctly in certain configurations remediate internal
    1 file
    • logger.ts

100% test coverage and Stryker sandbox coverage exclusion

8 files changed
  • vitest.config.ts Added Stryker mutation sandbox directory exclusion from v8 coverage reporting
  • propagation.ts Minor fix to resolve lint errors
  • cardinality.test.ts Property test lint fix
  • config.test.ts Property test lint fix
  • context.test.ts Property test lint fix
  • pii.test.ts Property test lint fix
  • sampling.test.ts Property test lint fix
  • schema.test.ts Property test lint fix
  • Resolved all lint errors in the TypeScript package remediate internal
    7 files
    • propagation.ts
    • cardinality.test.ts
    • config.test.ts
    • context.test.ts
    • pii.test.ts
    • sampling.test.ts
    • schema.test.ts
  • Achieved 100% test coverage for the TypeScript telemetry package qualify behavioral
    1 file
    • vitest.config.ts
  • Excluded Stryker mutation testing sandbox directory from v8 coverage reports to prevent false coverage drops qualify internal
    1 file
    • vitest.config.ts

Pre-commit config update

1 file changed
  • .pre-commit-config.yaml Auto-generated pre-commit config update (33 lines added)
  • Auto-generated pre-commit config update baseline internal
    1 file
    • .pre-commit-config.yaml