Commit Graph

2 Commits

Author SHA1 Message Date
Devin AI
ea4629360a fix: respect CREWAI_TRACING_ENABLED and user consent in telemetry
Fixes #4525 - Telemetry was being sent even when tracing was disabled.

Changes:
- Check CREWAI_TRACING_ENABLED env var in _is_telemetry_disabled()
- Check has_user_declined_tracing() in _is_telemetry_disabled()
- Add regression tests for all disable mechanisms
- Fix env var leakage in existing telemetry test fixtures

Co-Authored-By: João <joao@crewai.com>
2026-02-19 22:48:03 +00:00
Greyson LaLonde
f2f994612c fix: ensure otel span is closed
Some checks failed
Notify Downstream / notify-downstream (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Build uv cache / build-cache (3.10) (push) Has been cancelled
Build uv cache / build-cache (3.11) (push) Has been cancelled
Build uv cache / build-cache (3.12) (push) Has been cancelled
Build uv cache / build-cache (3.13) (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
2025-12-05 13:23:26 -05:00