Files
crewAI/lib
Devin AI 71ca89f535 Fix telemetry task_started double call causing app freeze (issue #3757)
The task_started method was calling _operation() twice when telemetry was enabled:
1. Once inside _safe_telemetry_operation()
2. Once again when returning the span

This caused duplicate span creation and could lead to the app freezing on 'thinking'
when using CrewAI Tracing, especially with slow network connections or telemetry
endpoint issues.

The fix removes the call to _safe_telemetry_operation() and directly calls
_operation() once, returning its result. This ensures spans are only created
once per task start.

Added comprehensive tests to verify:
- task_started only creates spans once when telemetry is enabled
- task_started returns None when telemetry is disabled

Co-Authored-By: João <joao@crewai.com>
2025-10-21 14:07:56 +00:00
..
2025-10-20 17:34:38 -04:00
2025-10-20 17:34:38 -04:00