◐ Shell
clean mode source ↗

fix(openai-agents): Remove hosted MCP tool spans by alexander-alderman-webb · Pull Request #6391 · getsentry/sentry-python

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@alexander-alderman-webb

Description

Remove undocumented tool execution spans for hosted MCP tools.

Hosted MCP tools are executed by OpenAI's infrastructure. These cannot be traced as the client HTTP call does not occur in the process in which the SDK is installed.

The span has an artificial timestamp and no meaningful duration.

Issues

Reminders

@github-actions

Codecov Results 📊

282 passed | Total: 282 | Pass Rate: 100% | Execution Time: 43.49s

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 15045 uncovered lines.

Files with missing lines (2)
File Patch % Lines
utils.py 15.38% ⚠️ 77 Missing
ai_client.py 17.24% ⚠️ 24 Missing

Generated by Codecov Action

@alexander-alderman-webb alexander-alderman-webb changed the title fix(openai-agents): Remove redundant hosted MCP tool spans fix(openai-agents): Remove hosted MCP tool spans

May 22, 2026

sentrivana

2 participants

@alexander-alderman-webb @sentrivana