We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38d71b2 commit b397f32Copy full SHA for b397f32
2 files changed
sentry_sdk/integrations/openai_agents/spans/execute_tool.py
@@ -29,7 +29,7 @@ def execute_tool_span(
29
30
if should_send_default_pii():
31
input = args[1]
32
- span.set_data(SPANDATA.GEN_AI_TOOL_INPUT, input)
+ span.set_data(SPANDATA.GEN_AI_TOOL_INPUT, safe_repr(input))
33
34
return span
35
sentry_sdk/integrations/openai_agents/utils.py
@@ -228,7 +228,7 @@ def _create_mcp_execute_tool_spans(
228
execute_tool_span.set_data(SPANDATA.GEN_AI_TOOL_NAME, output.name)
229
230
execute_tool_span.set_data(
231
- SPANDATA.GEN_AI_TOOL_INPUT, output.arguments
+ SPANDATA.GEN_AI_TOOL_INPUT, safe_repr(output.arguments)
232
)
233
234
SPANDATA.GEN_AI_TOOL_OUTPUT, safe_repr(output.output)
0 commit comments