fix(closes OPEN-9372): ensure 'log_context' and 'log_output' work whe…#605
Merged
gustavocidornelas merged 1 commit intomainfrom Mar 5, 2026
Merged
fix(closes OPEN-9372): ensure 'log_context' and 'log_output' work whe…#605gustavocidornelas merged 1 commit intomainfrom
gustavocidornelas merged 1 commit intomainfrom
Conversation
…n called from the same function
shah-siddd
approved these changes
Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…n called from the same function
Pull Request
Summary
When the user called
log_contextandlog_outputfrom within the same traced function, only the last call worked. This happened because both of them were leveraging the stepmetadatafield and one call was overwriting the next.This PR makes a small update to the
logmethod of steps. Instead of overwriting the metadata fields, we merge them.Changes
metadatawhen callingstep.log(metadata={...})instead of fully overwriting.Context
OPEN-9372: Ensure
log_contextandlog_outputwork when called from the same functionTesting