Skip to content

Commit c80943f

Browse files
chore: completes OPEN-7289 write unit tests for the tracer
1 parent 73c53c6 commit c80943f

File tree

2 files changed

+597
-1
lines changed

2 files changed

+597
-1
lines changed

src/openlayer/lib/tracing/tracer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,8 +1044,10 @@ def _finalize_step_logging(
10441044
else:
10451045
step.log(output=output)
10461046

1047+
# Start with existing metadata instead of overwriting it
1048+
step_metadata = step.metadata.copy() if step.metadata else {}
1049+
10471050
# Add guardrail metadata to step metadata
1048-
step_metadata = {}
10491051
if guardrail_metadata:
10501052
step_metadata["guardrails"] = guardrail_metadata
10511053

0 commit comments

Comments
 (0)