Commit 68d3944
committed
feat(tracer): refactor step creation and logging for improved clarity and maintainability
- Introduced `_create_and_initialize_step` to encapsulate step creation and parent-child relationships.
- Enhanced `_handle_trace_completion` to streamline trace completion and data streaming logic.
- Refactored existing tracing functions to utilize new helper methods, improving code readability.
- Added `_log_step_exception` and `_process_wrapper_inputs_and_outputs` for better error handling and input/output processing.
- Updated async generator handling to ensure proper tracing during iteration.1 parent c45b1b1 commit 68d3944
1 file changed
Lines changed: 383 additions & 312 deletions
0 commit comments