React sub-export, error fingerprinting, ANSI renderer, browser/edge OTel stub, mutation kills
69 files · 4,030+ · 607-

React sub-export: useTelemetryContext and TelemetryErrorBoundary

3 files changed
  • package.json Added ./react conditional export; react peer dep; testing-library dev dep
  • 2026-03-30-react-helper-design.md 127-line React helper design spec: useTelemetryContext hook and TelemetryErrorBoundary render-prop API
  • 2026-03-30-react-helper.md 552-line React helper implementation plan
  • New ./react sub-export provides useTelemetryContext hook (accesses active telemetry context in React components) and TelemetryErrorBoundary with render-prop fallback and reset support. React peer dep added; testing-library used for hook and boundary tests. instantiate behavioral
    1 file
    • package.json

Error fingerprinting and session correlation (Python + TypeScript)

6 files changed
  • test_error_fingerprint.py 270-line error fingerprint test suite
  • test_session_correlation.py 40-line session correlation tests
  • context.py Session correlation context utilities
  • 12_error_fingerprint_and_sessions.py 92-line Python example: error fingerprinting with session correlation
  • 12_error_fingerprint_and_sessions.ts 81-line TypeScript example: error fingerprinting with session correlation
  • 2026-03-29-error-fingerprinting-session-correlation-design.md 141-line design spec for error fingerprinting and session correlation
  • Error fingerprinting added to Python and TypeScript SDKs: deterministic fingerprints from exception type and traceback for grouping related errors. Session correlation attaches session IDs to log events for cross-request tracing. Fixes included: W3C baggage property stripping, BaseException fingerprinting (not just Exception), and session context leak prevention across concurrent requests. instantiate behavioral
    2 files
    • context.py
    • test_error_fingerprint.py

TypeScript ANSI color log renderer

1 file changed
  • logger.ts Pretty ANSI log renderer with color support, TTY detection, and structured field formatting
  • TypeScript SDK gains a pretty ANSI renderer for development use: colorized log levels, structured field display, and TTY detection to disable colors in CI/non-TTY environments. instantiate behavioral
    1 file
    • logger.ts

Browser/edge OTel no-op stub and conditional exports

1 file changed
  • otel.ts Conditional exports: browser/edge environments get OTel no-op stub; workerd and edge-light removed (Cloudflare/Vercel support OTel natively)
  • TypeScript package gains browser/edge conditional export for OTel: browser and edge-light runtimes receive a no-op stub rather than the full OTel provider, preventing bundle issues. workerd removed from the no-op conditions since Cloudflare Workers now supports OTel natively. instantiate behavioral
    1 file
    • otel.ts

Mutation survivor kills across resilience, processors, and ASGI

5 files changed
  • test_resilience_pragma_kills.py 337-line resilience mutation-killing tests; replaces pragma shortcuts with targeted behavioral tests
  • test_processors_mutations.py 196-line processor mutation tests
  • test_middleware_baggage.py 127-line ASGI middleware baggage extraction tests
  • test_middleware_mutations.py 58-line ASGI middleware mutation tests
  • test_hardening_resilience.py 35-line hardening resilience tests
  • 337-line resilience test suite replaces pragma shortcuts with targeted mutation-killing behavioral tests. 196-line processor mutation tests kill survivors in sanitize_sensitive_fields and related processors. ASGI middleware baggage extraction and mutation tests added. Executor replacement after circuit breaker trips fixed to prevent ghost thread accumulation. qualify internal
    3 files
    • test_resilience_pragma_kills.py
    • test_processors_mutations.py
    • test_middleware_baggage.py

Security hardening example and examples reorganization

8 files changed
  • 13_security_hardening.py 70-line Python example: input sanitization and secret detection
  • 13_security_hardening.ts 70-line TypeScript example: security hardening patterns
  • basic_logging.ts Removed (superseded by numbered telemetry/ scheme)
  • context_binding.ts Removed (superseded by numbered scheme)
  • metrics.ts Removed
  • openobserve.ts Removed
  • pii_sanitization.ts Removed
  • tracing.ts Removed
  • Root-level TypeScript examples removed; superseded by the numbered typescript/examples/telemetry/ scheme. Security hardening example added demonstrating input sanitization, secret detection, and depth guards. specify internal
    2 files
    • 13_security_hardening.py
    • 13_security_hardening.ts

CI: decoupled mutation workflow, Windows and macOS ARM64 testing

3 files changed
  • ci-mutation.yml 47-line standalone mutation testing workflow decoupled from quality CI
  • ci-python.yml Windows testing added to quality matrix; macOS ARM64 runner added
  • release.yml TestPyPI staging and verification before production PyPI publish; release gate behind release event
  • Mutation testing decoupled into a non-blocking ci-mutation.yml workflow so failures don’t block quality CI. Windows and macOS ARM64 (Apple Silicon) added to the Python and TypeScript quality matrices. Release pipeline gated: tags trigger TestPyPI staging with verification before production PyPI publish. baseline internal
    3 files
    • ci-mutation.yml
    • ci-python.yml
    • release.yml