provide-telemetry
2026-03-12
TTY-aware colored output, exception hierarchy, and large test expansion
101 files · 10,015+ · 445-
TTY-Aware Colored Console Output
2 files changed
core.pyConsole handler detects TTY context; enables ANSI color output only when writing to a terminalprocessors.pyProcessor 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.pyprocessors.py
Exception Hierarchy and Exports
2 files changed
exceptions.pyFormalized public exception hierarchy with proper __all__ declarations__init__.pyPublic API surface updated to export exception types
- Formalized the public exception hierarchy with proper
__all__declarations instantiate behavioral2 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.pyCorrectness fixes from review cycle; test isolation fixesconfig.pyTargeted correctness fixes from second-pass reviewprovider.pyLock-protected reset helpers; normalized traceparent case_otel.pyIntegration 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.pytest_dx_stability.py
- Targeted correctness fixes identified in code review cycle
remediate
internal
2 files
setup.pyconfig.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.pyProperty-based tests for event name invariantstest_sampling_properties.pyProperty-based tests for sampling behaviortest_tracing_properties.pyProperty-based tests for tracing invariantstest_performance_smoke.pyPerformance smoke tests measuring telemetry overheadtest_thread_safety.pyThread-safety concurrency teststest_backpressure_stress.pyBackpressure stress tests under concurrent loadtest_resilience_concurrency.pyResilience concurrency teststest_otel_integration.pyOpenTelemetry integration test scenariostest_otel_span_creation.pyOTel span creation teststest_backpressure_mutations.pyMutation tests for backpressure subsystemtest_cardinality_mutations.pyMutation tests for cardinality controlstest_health_mutations.pyMutation tests for health subsystemtest_health_snapshot_mapping.pyHealth snapshot mapping teststest_pii_mutations.pyMutation tests for PII scrubbingtest_propagation_mutations.pyMutation tests for context propagationtest_propagation_edge_cases.pyEdge-case tests for propagationtest_resilience_mutations.pyMutation tests for resilience subsystemtest_runtime_mutations.pyMutation tests for runtime reconfigurationtest_sampling_mutations.pyMutation tests for sampling subsystemtest_slo_mutations.pyMutation tests for SLO trackingtest_logger_mutations.pyMutation tests for logger subsystemtest_processors_mutations.pyMutation tests for log processorstest_fallback_mutations.pyMutation tests for metrics fallback behaviortest_setup_mutations.pyMutation tests for setup/teardown lifecycletest_middleware_mutations.pyMutation tests for ASGI middlewaretest_middleware_cancellation.pyASGI middleware cancellation teststest_header_helpers.pyHeader helper teststest_fuzz_resilience.pyFuzz tests for resilience subsystemtest_hardening_features.pyHardening feature teststest_hardening_resilience.pyHardening resilience teststest_code_review_regressions.pyRegression tests from code review findingstest_dx_stability.pyDX stability regression tests (426 lines)test_readme_snippets.pyTests that README code snippets execute correctlytest_check_event_literals.pyTests for the check_event_literals scripttest_config_edge_cases.pyConfig edge-case teststest_setup_reinitialization.pySetup reinitialization integration teststest_tracing_edge_cases.pyTracing edge-case tests (368 lines)
- New property-based tests for sampling, event names, and tracing invariants
qualify
internal
3 files
test_event_name_properties.pytest_sampling_properties.pytest_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.pytest_backpressure_stress.pytest_resilience_concurrency.py
- OpenTelemetry integration test scenarios
qualify
internal
2 files
test_otel_integration.pytest_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.pytest_cardinality_mutations.pytest_health_mutations.pytest_pii_mutations.pytest_propagation_mutations.pytest_resilience_mutations.pytest_runtime_mutations.pytest_sampling_mutations.pytest_slo_mutations.py