Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update_current_span now supports updating the output #709

Merged
merged 4 commits into from
Nov 25, 2024

Conversation

jverre
Copy link
Collaborator

@jverre jverre commented Nov 23, 2024

Details

Updated the update_current_span and update_current_trace methods to not override input and output values but instead merge them with existing values.

Issues

Resolves #708

Testing

Added unit test

Documentation

No docs updated

@jverre jverre requested a review from a team as a code owner November 23, 2024 22:14
@@ -399,7 +399,7 @@ def _after_call(
)

client = opik_client.get_client_cached()

print("span_data_to_end", span_data_to_end)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove print

Copy link
Collaborator

@alexkuzmik alexkuzmik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just remove the print statement

@jverre jverre requested a review from alexkuzmik November 25, 2024 10:30
@jverre jverre merged commit 7bc8415 into main Nov 25, 2024
23 checks passed
@jverre jverre deleted the jacques/update_output_for_current_span_and_trace branch November 25, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Calling update_current_span with output parameter does nothing
2 participants