Title: Propagate context variables in the SSE transport within the MCP integration · Issue #6593 · getsentry/sentry-python · GitHub
Open Graph Title: Propagate context variables in the SSE transport within the MCP integration · Issue #6593 · getsentry/sentry-python
X Title: Propagate context variables in the SSE transport within the MCP integration · Issue #6593 · getsentry/sentry-python
Description: Related: #6583 (comment) See test_sse_transport_detection_v2 test in test_mcp.pyas a reference to this behaviour. Because we don't propagate these correctly, traces lose everything that's set on the isolation and current scopes, we lose ...
Open Graph Description: Related: #6583 (comment) See test_sse_transport_detection_v2 test in test_mcp.pyas a reference to this behaviour. Because we don't propagate these correctly, traces lose everything that's set on th...
X Description: Related: #6583 (comment) See test_sse_transport_detection_v2 test in test_mcp.pyas a reference to this behaviour. Because we don't propagate these correctly, traces lose everything that's s...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/6593
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Propagate context variables in the SSE transport within the MCP integration","articleBody":"Related: [https://github.com/getsentry/sentry-python/pull/6583#discussion_r3427253810](\u003chttps://github.com/getsentry/sentry-python/pull/6583#discussion_r3427253810\u003e)\n\nSee `test_sse_transport_detection_v2` test in `test_mcp.py`as a reference to this behaviour.\n\nBecause we don't propagate these correctly, traces lose everything that's set on the isolation and current scopes, we lose the parent-child span relationship, attributes that were set are lost, andwe get two traces instead of one.\n\n**Note:** Rather than working to propagate the context variables, we may want to consider dropping support for the SSE transport as current data points to most users using the HTTP transport.","author":{"url":"https://github.com/ericapisani","@type":"Person","name":"ericapisani"},"datePublished":"2026-06-17T12:05:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/6593/sentry-python/issues/6593"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2c375c61-8d86-d09b-52f6-92d9361a08f4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AD6:12DB27:3FDE7C:5C0EC8:6A4FA558 |
| html-safe-nonce | dbf7c3a901e7456461ed0e3cf6f90522d168e61c8973e7f0ec5e84fd1821b1a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUQ2OjEyREIyNzozRkRFN0M6NUMwRUM4OjZBNEZBNTU4IiwidmlzaXRvcl9pZCI6IjY0MjA2MjA3Mzk0MTQ1NjYyMzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8bed88d6733560ee02af272d425e8cbb584b548f86a48b84b8d661bd4d305852 |
| hovercard-subject-tag | issue:4683054811 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/6593/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8713da9339c095c44f1a8a2cc7aad853ba1219bebd2a59a84b4ecfeddfcb5234/getsentry/sentry-python/issues/6593 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8713da9339c095c44f1a8a2cc7aad853ba1219bebd2a59a84b4ecfeddfcb5234/getsentry/sentry-python/issues/6593 |
| og:image:alt | Related: #6583 (comment) See test_sse_transport_detection_v2 test in test_mcp.pyas a reference to this behaviour. Because we don't propagate these correctly, traces lose everything that's set on th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ericapisani |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width