Skip to content

chore(mcp): Remove transaction-based tracing - #7408

Draft
alexander-alderman-webb wants to merge 5 commits into
major/3.0from
webb/mcp/remove-transactions
Draft

chore(mcp): Remove transaction-based tracing#7408
alexander-alderman-webb wants to merge 5 commits into
major/3.0from
webb/mcp/remove-transactions

Conversation

@alexander-alderman-webb

Copy link
Copy Markdown
Contributor

Description

Issues

Closes #7101

Reminders

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

76181 passed | ❌ 36 failed | ⏭️ 3527 skipped | Total: 79744 | Pass Rate: 95.53% | Execution Time: 250m 40s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -57962
Passed Tests 📉 -54403
Failed Tests 📈 +36
Skipped Tests 📉 -3595

➕ New Tests (36)

View new tests
  • test_tool_handler_stateless_streamable_http
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_streamable_http_scope_propagation
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_tool_handler_stateless_streamable_http
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_streamable_http_scope_propagation
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_mcpserver_high_level_tool_instrumented
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_tool_handler_stateless_streamable_http
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_streamable_http_scope_propagation
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_tool_handler_stateless_streamable_http
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_streamable_http_scope_propagation
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_tool_handler_stateless_streamable_http
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_streamable_http_scope_propagation
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_tool_handler_stateless_streamable_http
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_streamable_http_scope_propagation
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_mcpserver_high_level_tool_instrumented
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_tool_handler_stateless_streamable_http
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_streamable_http_scope_propagation
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_tool_handler_stateless_streamable_http
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_streamable_http_scope_propagation
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_mcpserver_high_level_tool_instrumented
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_tool_handler_stateless_streamable_http
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_streamable_http_scope_propagation
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_tool_handler_stateless_streamable_http
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_streamable_http_scope_propagation
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_mcpserver_high_level_tool_instrumented
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_tool_handler_stateless_streamable_http
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_streamable_http_scope_propagation
    • File: tests.integrations.mcp.test_mcp
    • Status: ❌ Failing
  • test_fastmcp_prompt_async[mcp.server.fastmcp]
    • File: tests.integrations.fastmcp.test_fastmcp
    • Status: ❌ Failing
  • test_fastmcp_prompt_async[mcp.server.fastmcp]
    • File: tests.integrations.fastmcp.test_fastmcp
    • Status: ❌ Failing
  • test_fastmcp_prompt_async[fastmcp]
    • File: tests.integrations.fastmcp.test_fastmcp
    • Status: ❌ Failing
  • test_fastmcp_prompt_async[mcp.server.fastmcp]
    • File: tests.integrations.fastmcp.test_fastmcp
    • Status: ❌ Failing
  • test_fastmcp_prompt_async[fastmcp]
    • File: tests.integrations.fastmcp.test_fastmcp
    • Status: ❌ Failing
  • test_fastmcp_prompt_async[mcp.server.fastmcp]
    • File: tests.integrations.fastmcp.test_fastmcp
    • Status: ❌ Failing
  • test_fastmcp_prompt_async[mcp.server.fastmcp]
    • File: tests.integrations.fastmcp.test_fastmcp
    • Status: ❌ Failing
  • test_fastmcp_prompt_async[fastmcp]
    • File: tests.integrations.fastmcp.test_fastmcp
    • Status: ❌ Failing
  • test_fastmcp_prompt_async[mcp.server.fastmcp]
    • File: tests.integrations.fastmcp.test_fastmcp
    • Status: ❌ Failing
  • test_fastmcp_prompt_async[fastmcp]
    • File: tests.integrations.fastmcp.test_fastmcp
    • Status: ❌ Failing

❌ Failed Tests

test_tool_handler_stateless_streamable_http

File: tests.integrations.mcp.test_mcp
Suite: py3.10-mcp-v1.15.0
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:535: in test_tool_handler_stateless_streamable_http
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_streamable_http_scope_propagation

File: tests.integrations.mcp.test_mcp
Suite: py3.10-mcp-v1.15.0
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:1626: in test_streamable_http_scope_propagation
    assert len(mcp_transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_tool_handler_stateless_streamable_http

File: tests.integrations.mcp.test_mcp
Suite: py3.10-mcp-v1.29.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:535: in test_tool_handler_stateless_streamable_http
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_streamable_http_scope_propagation

File: tests.integrations.mcp.test_mcp
Suite: py3.10-mcp-v1.29.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:1626: in test_streamable_http_scope_propagation
    assert len(mcp_transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_mcpserver_high_level_tool_instrumented

File: tests.integrations.mcp.test_mcp
Suite: py3.10-mcp-v2.1.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:239: in test_mcpserver_high_level_tool_instrumented
    assert len(tx["spans"]) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_tool_handler_stateless_streamable_http

File: tests.integrations.mcp.test_mcp
Suite: py3.10-mcp-v2.1.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:535: in test_tool_handler_stateless_streamable_http
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_streamable_http_scope_propagation

File: tests.integrations.mcp.test_mcp
Suite: py3.10-mcp-v2.1.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:1626: in test_streamable_http_scope_propagation
    assert len(mcp_transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_tool_handler_stateless_streamable_http

File: tests.integrations.mcp.test_mcp
Suite: py3.12-mcp-v1.15.0
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:535: in test_tool_handler_stateless_streamable_http
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_streamable_http_scope_propagation

File: tests.integrations.mcp.test_mcp
Suite: py3.12-mcp-v1.15.0
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:1626: in test_streamable_http_scope_propagation
    assert len(mcp_transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_tool_handler_stateless_streamable_http

File: tests.integrations.mcp.test_mcp
Suite: py3.13-mcp-v1.15.0
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:535: in test_tool_handler_stateless_streamable_http
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_streamable_http_scope_propagation

File: tests.integrations.mcp.test_mcp
Suite: py3.13-mcp-v1.15.0
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:1626: in test_streamable_http_scope_propagation
    assert len(mcp_transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_tool_handler_stateless_streamable_http

File: tests.integrations.mcp.test_mcp
Suite: py3.13-mcp-v1.29.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:535: in test_tool_handler_stateless_streamable_http
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_streamable_http_scope_propagation

File: tests.integrations.mcp.test_mcp
Suite: py3.13-mcp-v1.29.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:1626: in test_streamable_http_scope_propagation
    assert len(mcp_transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_mcpserver_high_level_tool_instrumented

File: tests.integrations.mcp.test_mcp
Suite: py3.13-mcp-v2.1.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:239: in test_mcpserver_high_level_tool_instrumented
    assert len(tx["spans"]) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_tool_handler_stateless_streamable_http

File: tests.integrations.mcp.test_mcp
Suite: py3.13-mcp-v2.1.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:535: in test_tool_handler_stateless_streamable_http
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_streamable_http_scope_propagation

File: tests.integrations.mcp.test_mcp
Suite: py3.13-mcp-v2.1.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:1626: in test_streamable_http_scope_propagation
    assert len(mcp_transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_tool_handler_stateless_streamable_http

File: tests.integrations.mcp.test_mcp
Suite: py3.14-mcp-v1.29.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:535: in test_tool_handler_stateless_streamable_http
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_streamable_http_scope_propagation

File: tests.integrations.mcp.test_mcp
Suite: py3.14-mcp-v1.29.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:1626: in test_streamable_http_scope_propagation
    assert len(mcp_transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_mcpserver_high_level_tool_instrumented

File: tests.integrations.mcp.test_mcp
Suite: py3.14-mcp-v2.1.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:239: in test_mcpserver_high_level_tool_instrumented
    assert len(tx["spans"]) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_tool_handler_stateless_streamable_http

File: tests.integrations.mcp.test_mcp
Suite: py3.14-mcp-v2.1.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:535: in test_tool_handler_stateless_streamable_http
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_streamable_http_scope_propagation

File: tests.integrations.mcp.test_mcp
Suite: py3.14-mcp-v2.1.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:1626: in test_streamable_http_scope_propagation
    assert len(mcp_transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_tool_handler_stateless_streamable_http

File: tests.integrations.mcp.test_mcp
Suite: py3.14t-mcp-v1.29.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:535: in test_tool_handler_stateless_streamable_http
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_streamable_http_scope_propagation

File: tests.integrations.mcp.test_mcp
Suite: py3.14t-mcp-v1.29.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:1626: in test_streamable_http_scope_propagation
    assert len(mcp_transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_mcpserver_high_level_tool_instrumented

File: tests.integrations.mcp.test_mcp
Suite: py3.14t-mcp-v2.1.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:239: in test_mcpserver_high_level_tool_instrumented
    assert len(tx["spans"]) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_tool_handler_stateless_streamable_http

File: tests.integrations.mcp.test_mcp
Suite: py3.14t-mcp-v2.1.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:535: in test_tool_handler_stateless_streamable_http
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_streamable_http_scope_propagation

File: tests.integrations.mcp.test_mcp
Suite: py3.14t-mcp-v2.1.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/mcp/test_mcp.py:1626: in test_streamable_http_scope_propagation
    assert len(mcp_transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_fastmcp_prompt_async[mcp.server.fastmcp]

File: tests.integrations.fastmcp.test_fastmcp
Suite: py3.15-fastmcp-v0.1.0
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/fastmcp/test_fastmcp.py:768: in test_fastmcp_prompt_async
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_fastmcp_prompt_async[mcp.server.fastmcp]

File: tests.integrations.fastmcp.test_fastmcp
Suite: py3.15-fastmcp-v0.4.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/fastmcp/test_fastmcp.py:768: in test_fastmcp_prompt_async
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_fastmcp_prompt_async[fastmcp]

File: tests.integrations.fastmcp.test_fastmcp
Suite: py3.15-fastmcp-v0.4.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/fastmcp/test_fastmcp.py:768: in test_fastmcp_prompt_async
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_fastmcp_prompt_async[mcp.server.fastmcp]

File: tests.integrations.fastmcp.test_fastmcp
Suite: py3.15-fastmcp-v1.0
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/fastmcp/test_fastmcp.py:768: in test_fastmcp_prompt_async
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_fastmcp_prompt_async[fastmcp]

File: tests.integrations.fastmcp.test_fastmcp
Suite: py3.15-fastmcp-v1.0
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/fastmcp/test_fastmcp.py:768: in test_fastmcp_prompt_async
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_fastmcp_prompt_async[mcp.server.fastmcp]

File: tests.integrations.fastmcp.test_fastmcp
Suite: py3.15t-fastmcp-v0.1.0
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/fastmcp/test_fastmcp.py:768: in test_fastmcp_prompt_async
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_fastmcp_prompt_async[mcp.server.fastmcp]

File: tests.integrations.fastmcp.test_fastmcp
Suite: py3.15t-fastmcp-v0.4.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/fastmcp/test_fastmcp.py:768: in test_fastmcp_prompt_async
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_fastmcp_prompt_async[fastmcp]

File: tests.integrations.fastmcp.test_fastmcp
Suite: py3.15t-fastmcp-v0.4.1
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/fastmcp/test_fastmcp.py:768: in test_fastmcp_prompt_async
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_fastmcp_prompt_async[mcp.server.fastmcp]

File: tests.integrations.fastmcp.test_fastmcp
Suite: py3.15t-fastmcp-v1.0
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/fastmcp/test_fastmcp.py:768: in test_fastmcp_prompt_async
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

test_fastmcp_prompt_async[fastmcp]

File: tests.integrations.fastmcp.test_fastmcp
Suite: py3.15t-fastmcp-v1.0
Error: assert 0 == 1 + where 0 = len([])

Stack Trace
tests/integrations/fastmcp/test_fastmcp.py:768: in test_fastmcp_prompt_async
    assert len(transactions) == 1
E   assert 0 == 1
E    +  where 0 = len([])

✅ Patch coverage is 87.30%. Project has 2269 uncovered lines.
❌ Project coverage is 90.16%. Comparing base (57a7298) to head (8286f39).

Files with missing lines (1)
File Patch % Lines
sentry_sdk/integrations/mcp.py 87.30% ⚠️ 24 Missing and 33 partials
Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.25%    90.16%    -0.09%
==========================================
  Files          193       185        -8
  Lines        25725     23063     -2662
  Branches      9494      8432     -1062
==========================================
+ Hits         23217     20794     -2423
- Misses        2508      2269      -239
- Partials      1432      1355       -77

Generated by Codecov Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant