getsentry / getsentry/sentry-python

Propagate context variables in the SSE transport within the MCP integration

未关闭
#6,593 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
MCP Python
主要语言
Python
星标
2.2k
派生
669
平均合并
1 天 1 小时
30 天内合并 PR
213

描述

Related: [https://github.com/getsentry/sentry-python/pull/6583#discussion_r3427253810]()

See `test_sse_transport_detection_v2` test in `test_mcp.py`as 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 the parent-child span relationship, attributes that were set are lost, andwe get two traces instead of one.

**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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。