From b1867a3e1b46b04f29cf7766a7e5cd73215fb504 Mon Sep 17 00:00:00 2001 From: Gustavo Cid Date: Wed, 4 Mar 2026 14:21:01 -0300 Subject: [PATCH] fix(closes OPEN-9372): ensure 'log_context' and 'log_output' work when called from the same function --- src/openlayer/lib/tracing/steps.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openlayer/lib/tracing/steps.py b/src/openlayer/lib/tracing/steps.py index 64a02deb..46185508 100644 --- a/src/openlayer/lib/tracing/steps.py +++ b/src/openlayer/lib/tracing/steps.py @@ -118,6 +118,9 @@ def log(self, **kwargs: Any) -> None: """Logs step data.""" for key, value in kwargs.items(): if hasattr(self, key): + if key == "metadata": + self.metadata.update(value) + continue setattr(self, key, value) def to_dict(self) -> Dict[str, Any]: