Update PropagationContext on changes
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Refactorisation
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- python
- Domaine
- backend, observability-sre
Piste de recherche
Commencez par suivre où PropagationContext est mis à jour et examinez la logique qui se rabat sur le span actif, notamment la façon dont elle interagit avec scope.span. Examinez l’ancien code de tracing et les changements de Span First avant de modifier quoi que ce soit. C’est terminé lorsque span_id et parent_span_id reflètent l’état actuel et que les consommateurs utilisent le contexte de propagation comme unique source de vérité.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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_idwhenever 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
- Langage dominant
- Python
- Étoiles
- 2.2k
- Forks
- 672
- Merge moyen
- 22 h 54 min
- PR mergées (30 j)
- 235
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de getsentry/sentry-python
-
Python
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
getsentry/sentry-python#7668 · 1 commentaire ·
-
Python
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
getsentry/sentry-python#7671 · 1 commentaire ·
-
Remove send_default_pii from ray OuvertePython
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
getsentry/sentry-python#7663 · 1 commentaire ·
-
Python
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
getsentry/sentry-python#7660 · 1 commentaire ·
-
Python
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
getsentry/sentry-python#7652 · 1 commentaire ·
Toutes les issues de getsentry/sentry-python
Issues similaires
-
[Bug] reef-hermes tells me to resume with hermes --resume, which does not work from my shell Ouvertearea: harness bug status: needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Human-Agent-Society/reef#625 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 80/100
learningequality/kolibri#15351 · 2 commentaires ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
Name consistency Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
eellak/triplestore#65 · 1 commentaire ·