Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def execute_tool_span(

if should_send_default_pii():
input = args[1]
span.set_data(SPANDATA.GEN_AI_TOOL_INPUT, input)
span.set_data(SPANDATA.GEN_AI_TOOL_INPUT, safe_repr(input))

return span

Expand Down
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/openai_agents/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def _create_mcp_execute_tool_spans(
execute_tool_span.set_data(SPANDATA.GEN_AI_TOOL_NAME, output.name)
if should_send_default_pii():
execute_tool_span.set_data(
SPANDATA.GEN_AI_TOOL_INPUT, output.arguments
SPANDATA.GEN_AI_TOOL_INPUT, safe_repr(output.arguments)
)
execute_tool_span.set_data(
SPANDATA.GEN_AI_TOOL_OUTPUT, safe_repr(output.output)
Expand Down
Loading