TTY-aware colored output, exception hierarchy, and large test expansion
101 files · 10,015+ · 445-

TTY-Aware Colored Console Output

2 files changed
  • core.py Console handler detects TTY context; enables ANSI color output only when writing to a terminal
  • processors.py Processor updates to support color rendering path
  • Console handler now detects TTY context and enables ANSI color output only when appropriate (terminal vs. redirected output) instantiate behavioral
    2 files
    • core.py
    • processors.py

Exception Hierarchy and Exports

2 files changed
  • exceptions.py Formalized public exception hierarchy with proper __all__ declarations
  • __init__.py Public API surface updated to export exception types
  • Formalized the public exception hierarchy with proper __all__ declarations instantiate behavioral
    2 files
    • exceptions.py
    • __init__.py
  • Added diagnostic logging to help users debug telemetry configuration issues instantiate behavioral
    1 file
    • core.py

Bug Fixes from Code Review

4 files changed
  • setup.py Correctness fixes from review cycle; test isolation fixes
  • config.py Targeted correctness fixes from second-pass review
  • provider.py Lock-protected reset helpers; normalized traceparent case
  • _otel.py Integration markers added; redundant asyncio decorators removed
  • Isolated test state that was leaking between test runs; added error handling example qualify internal
    2 files
    • test_code_review_regressions.py
    • test_dx_stability.py
  • Targeted correctness fixes identified in code review cycle remediate internal
    2 files
    • setup.py
    • config.py
  • Second-pass review fixes: lock-protect reset helpers, normalize traceparent case, add integration markers, remove redundant asyncio decorators remediate internal
    2 files
    • provider.py
    • _otel.py

Test Suite Expansion

37 files changed
  • test_event_name_properties.py Property-based tests for event name invariants
  • test_sampling_properties.py Property-based tests for sampling behavior
  • test_tracing_properties.py Property-based tests for tracing invariants
  • test_performance_smoke.py Performance smoke tests measuring telemetry overhead
  • test_thread_safety.py Thread-safety concurrency tests
  • test_backpressure_stress.py Backpressure stress tests under concurrent load
  • test_resilience_concurrency.py Resilience concurrency tests
  • test_otel_integration.py OpenTelemetry integration test scenarios
  • test_otel_span_creation.py OTel span creation tests
  • test_backpressure_mutations.py Mutation tests for backpressure subsystem
  • test_cardinality_mutations.py Mutation tests for cardinality controls
  • test_health_mutations.py Mutation tests for health subsystem
  • test_health_snapshot_mapping.py Health snapshot mapping tests
  • test_pii_mutations.py Mutation tests for PII scrubbing
  • test_propagation_mutations.py Mutation tests for context propagation
  • test_propagation_edge_cases.py Edge-case tests for propagation
  • test_resilience_mutations.py Mutation tests for resilience subsystem
  • test_runtime_mutations.py Mutation tests for runtime reconfiguration
  • test_sampling_mutations.py Mutation tests for sampling subsystem
  • test_slo_mutations.py Mutation tests for SLO tracking
  • test_logger_mutations.py Mutation tests for logger subsystem
  • test_processors_mutations.py Mutation tests for log processors
  • test_fallback_mutations.py Mutation tests for metrics fallback behavior
  • test_setup_mutations.py Mutation tests for setup/teardown lifecycle
  • test_middleware_mutations.py Mutation tests for ASGI middleware
  • test_middleware_cancellation.py ASGI middleware cancellation tests
  • test_header_helpers.py Header helper tests
  • test_fuzz_resilience.py Fuzz tests for resilience subsystem
  • test_hardening_features.py Hardening feature tests
  • test_hardening_resilience.py Hardening resilience tests
  • test_code_review_regressions.py Regression tests from code review findings
  • test_dx_stability.py DX stability regression tests (426 lines)
  • test_readme_snippets.py Tests that README code snippets execute correctly
  • test_check_event_literals.py Tests for the check_event_literals script
  • test_config_edge_cases.py Config edge-case tests
  • test_setup_reinitialization.py Setup reinitialization integration tests
  • test_tracing_edge_cases.py Tracing edge-case tests (368 lines)
  • New property-based tests for sampling, event names, and tracing invariants qualify internal
    3 files
    • test_event_name_properties.py
    • test_sampling_properties.py
    • test_tracing_properties.py
  • Performance smoke tests measuring telemetry overhead qualify internal
    1 file
    • test_performance_smoke.py
  • Concurrency tests for thread safety and backpressure stress qualify internal
    3 files
    • test_thread_safety.py
    • test_backpressure_stress.py
    • test_resilience_concurrency.py
  • OpenTelemetry integration test scenarios qualify internal
    2 files
    • test_otel_integration.py
    • test_otel_span_creation.py
  • New mutation test modules for backpressure, cardinality, health, PII, propagation, resilience, runtime, sampling, SLO, logger, metrics, setup, and ASGI subsystems qualify internal
    9 files
    • test_backpressure_mutations.py
    • test_cardinality_mutations.py
    • test_health_mutations.py
    • test_pii_mutations.py
    • test_propagation_mutations.py
    • test_resilience_mutations.py
    • test_runtime_mutations.py
    • test_sampling_mutations.py
    • test_slo_mutations.py