Skip to content

Commit 99b1ddb

Browse files
committed
fix(openai-agents): correct span data assignment for tool execution output
1 parent 96df8c1 commit 99b1ddb

File tree

1 file changed

+3
-1
lines changed
  • sentry_sdk/integrations/openai_agents

1 file changed

+3
-1
lines changed

sentry_sdk/integrations/openai_agents/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ def _create_mcp_execute_tool_spans(span, result):
173173
execute_tool_span.set_data(
174174
SPANDATA.GEN_AI_TOOL_INPUT, output.arguments
175175
)
176-
span.set_data(SPANDATA.GEN_AI_TOOL_OUTPUT, output.output)
176+
execute_tool_span.set_data(
177+
SPANDATA.GEN_AI_TOOL_OUTPUT, output.output
178+
)
177179
if output.error:
178180
execute_tool_span.set_status(SPANSTATUS.ERROR)

0 commit comments

Comments
 (0)