Skip to content

Commit 243a7f9

Browse files
viniciusdsmellogustavocidornelas
authored andcommitted
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 2daf847 commit 243a7f9

File tree

1 file changed

+383
-312
lines changed

1 file changed

+383
-312
lines changed

0 commit comments

Comments
 (0)