Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Update PropagationContext on changes

Aberta
#5,322 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Refatoração
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
python

Direção de pesquisa

Comece rastreando onde PropagationContext é atualizado e inspecione a lógica que recorre ao span ativo, incluindo como ela interage com scope.span. Revise o código antigo de tracing e as alterações de Span First antes de editar. Está concluído quando span_id e parent_span_id refletirem o estado atual e os consumidores usarem o contexto de propagação como a única fonte de verdade.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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
Linguagem predominante
Python
Estrelas
2.2k
Forks
672
Merge médio
19h 30min
PRs com merge (30d)
215

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de getsentry/sentry-python

Todas as issues de getsentry/sentry-python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.