Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Update PropagationContext on changes

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

まず PropagationContext が更新される箇所を追跡し、アクティブな span にフォールバックするロジックを調べます。scope.span との相互作用も確認してください。編集する前に、古い tracing コードと Span First の変更を確認します。span_id と parent_span_id が現在の状態を反映し、コンシューマーが propagation context を唯一の信頼できる情報源として使用していれば完了です。

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

説明

Improvement Python Spans

Currently, we only ever update the PropagationContext on trace start or trace continuation. It's then not kept in sync with what's actually going on: for example, the span_id field is never updated to the actual running span, and the parent_span_id field is not updated to the parent of the currently running span.

This means we have a lot of fragmented logic all around, first checking the active span for data, and only falling back to the PropagationContext when not available. The PropagationContext should be the single point of truth.

Goals

  • update the propagation context's span_id, parent_span_id whenever these change, so that they represent the actual current state
  • check for places where we fall back to checking the propagation context and change them so that we use propagation context only (i.e., don't check for current span first, just use whatever is stored in the propagation context)

Notes

  • Might be easier to do after we've ripped out the old tracing code with the changes for Span First.
  • See how this interacts with scope.span
主要言語
Python
スター
2.2k
フォーク
672
平均マージ
22時間 47分
マージ済み PR(30日)
224

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

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

はじめの一歩

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

getsentry/sentry-python のほかの issue

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

似ている issue

Python の issue をもっと見る

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

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