fix(openai-agents): Remove hosted MCP tool spans by alexander-alderman-webb · Pull Request #6391 · getsentry/sentry-python
-
Notifications
You must be signed in to change notification settings - Fork 629
Conversation
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
- Please add tests to validate your changes, and lint your code using
tox -e linters. - Add GH Issue ID & Linear ID (if applicable)
- PR title should use conventional commit style (
feat:,fix:,ref:,meta:) - For external contributors: CONTRIBUTING.md, Sentry SDK development docs, Discord community
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% | |
ai_client.py |
17.24% |
Generated by Codecov Action
alexander-alderman-webb
changed the title
fix(openai-agents): Remove redundant hosted MCP tool spans
fix(openai-agents): Remove hosted MCP tool spans
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters