Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions py/src/braintrust/wrappers/claude_agent_sdk/_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ async def receive_response(self) -> AsyncGenerator[Any, None]:
span.log(output=final_results[-1] if final_results else None)
except Exception as e:
log.warning("Error in tracing code", exc_info=e)
raise
finally:
llm_tracker.cleanup()
if hasattr(_thread_local, 'parent_span_export'):
Expand Down