Propagate context variables in the SSE transport within the MCP integration

オープン
#6,593 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
python
領域
backend

調査の方向性

test_mcp.py の test_sse_transport_detection_v2 テストから始め、リンクされている pull request の議論を確認してください。SSE トランスポートがコンテキストをどのように扱うかを追跡し、HTTP トランスポートと比較してください。スコープ、親子関係、属性、単一の trace のいずれも保持するか、SSE のサポートを廃止するという明確な判断に至れば完了です。

索引モデルが issue の本文から書いたものです。

説明

MCP Python

Related: https://github.com/getsentry/sentry-python/pull/6583#discussion_r3427253810

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

主要言語
Python
スター
2.2k
フォーク
672
平均マージ
23時間 14分
マージ済み PR(30日)
218

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/sentry-python のほかの issue

getsentry/sentry-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。