Skip to content

Commit da74c9b

Browse files
fix(tracer): correct step ID formatting in debug logging for improved trace clarity
1 parent 2d0c3c8 commit da74c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openlayer/lib/integrations/litellm_tracer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def stream_chunks(
169169
inputs={"prompt": kwargs.get("messages", [])},
170170
) as step:
171171
# #region agent log - Debug: Check if step is root after creation
172-
print(f"[OPENLAYER_DEBUG] litellm_tracer:stream_chunks | AFTER create_step | step_id={step.id[:8] if step.id else None} | is_root={_parent is None}", flush=True)
172+
print(f"[OPENLAYER_DEBUG] litellm_tracer:stream_chunks | AFTER create_step | step_id={str(step.id)[:8] if step.id else None} | is_root={_parent is None}", flush=True)
173173
# #endregion
174174
try:
175175
i = 0

0 commit comments

Comments
 (0)