- Use crew variable to avoid F841 unused variable error
- Remove API key logging to address CodeQL security alert
- Make path portable using os.path.join
Co-Authored-By: João <joao@crewai.com>
- Move get_auth_token() call inside try-catch block in TraceBatchManager.__init__
- This allows graceful handling of AuthError when no authentication token is present
- Crews can now work without authentication by using ephemeral batches
- Add test to verify TraceBatchManager handles missing auth gracefully
- Add standalone test script that confirms the fix works correctly
Fixes issue where recent changes broke previously running crews due to
mandatory authentication in the tracing system.
Co-Authored-By: João <joao@crewai.com>