Skip to content

Commit b1867a3

Browse files
fix(closes OPEN-9372): ensure 'log_context' and 'log_output' work when called from the same function
1 parent 4798ffd commit b1867a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/openlayer/lib/tracing/steps.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ def log(self, **kwargs: Any) -> None:
118118
"""Logs step data."""
119119
for key, value in kwargs.items():
120120
if hasattr(self, key):
121+
if key == "metadata":
122+
self.metadata.update(value)
123+
continue
121124
setattr(self, key, value)
122125

123126
def to_dict(self) -> Dict[str, Any]:

0 commit comments

Comments
 (0)