getsentry / getsentry/sentry-java

Reevaluate traceId generation places

Aberta
#4,674 3 comentários 0 reações 0 responsáveis Ver no GitHub
Java Task Traces
Linguagem predominante
Kotlin
Estrelas
1.4k
Forks
478
Merge médio
3d 4h
PRs com merge (30d)
72

Descrição

### Description

There is an "issue" with ANRs [not having the same traceId]() of the currently running transaction, if the transaction finishes right before the ANR occurs.

This is due to our TWP implementation. Should we change it?
It would mean to either

* understand if an anr is likely going to occur and don't overwrite the stored traceId when the current span finishes
* replace the traceId stored from spans only after at least 5 seconds, ensuring that the traceId stored in the `PersistingScopeObserver` is used only by ANRs

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece lendo a implementação de TWP e PersistingScopeObserver e, em seguida, revise a issue #4648 para entender o cenário de ANR e traceId. Determine qual traceId deve ser mantido quando uma transação termina imediatamente antes de um ANR e estabeleça a política escolhida; a issue não especifica testes nem outros arquivos.

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

Avaliação

Stack de tecnologia
android, java, kotlin
Domínio
mobile, observability
Tipo de issue
Refatoração
Dificuldade
5/5
Tempo estimado
Mais de uma semana
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
30/100

Receba novas issues na sua caixa de entrada

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