Skip to content

Merge branch 'master' into ep/py-2340-mcp-span-first-84l

933734c
Select commit
Loading
Failed to load commit list.
Merged

feat(mcp): Migrate to span first #6131

Merge branch 'master' into ep/py-2340-mcp-span-first-84l
933734c
Select commit
Loading
Failed to load commit list.
@sentry/warden / warden: find-bugs completed Apr 24, 2026 in 8m 0s

1 issue

find-bugs: Found 1 issue (1 low)

Low

Duplicate import of StreamedSpan causes unnecessary redundancy - `sentry_sdk/integrations/mcp.py:41`

StreamedSpan is imported twice: once at runtime on line 18 (from sentry_sdk.traces import StreamedSpan) and again under TYPE_CHECKING on line 41. The TYPE_CHECKING import is redundant since the class is already available at runtime. While Python handles this gracefully and it won't cause functional issues, it adds unnecessary code duplication.


Duration: 7m 57s · Tokens: 3.8M in / 23.1k out · Cost: $6.68 (+extraction: $0.00, +fix_gate: $0.00)