Opt-in breadcrumb timeline capture for severe long tasks
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 18/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- javascript, react-native, typescript
- Domínio
- observability, performance
Direção de pesquisa
This is a design discussion, not a scoped change: it opens with two unresolved questions (reliability of performance.timeOrigin on RN 0.82+ New Architecture, and whether the default maxBreadcrumbs of 100 is enough) that need an answer before any code is written. Start by reading how the existing long-task detection emits events and how createReduxEnhancer and the fetch/xhr/navigation integrations attach breadcrumbs, then read the related span issue and getsentry/sentry-react-native#6185 for context. Done here means a written proposal — threshold option, per-session cap, screen-based fingerprint, and how performance.timeOrigin + entry.startTime maps to the breadcrumb window — agreed with the team before implementation.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
A long task tells you that the JS thread was blocked, but not what led to it. Customers who need the Redux action / network / navigation timeline around a long task keep their own ring-buffer instrumentation next to the SDK. The SDK already records most of that timeline as breadcrumbs (createReduxEnhancer actions, fetch/xhr, navigation, touches).
Proposal (team discussion):
- Above a second threshold (e.g.
captureThresholdMs: 1000), emit a warning-level event that carries the breadcrumbs from shortly before the task through its end. Events already carry breadcrumbs,view_namesand the replay link; log attributes are flat and fit a breadcrumb array poorly. - Off by default, with a per-session cap.
- Fingerprint by screen, since there is no stack.
- Match the window by converting
performance.timeOrigin + entry.startTimeto wall-clock time.
Open questions: whether performance.timeOrigin is reliable on RN 0.82+ New Architecture; whether the default maxBreadcrumbs (100) keeps enough history in apps that dispatch many Redux actions. Breadcrumbs do not cover component renders; the ui.long_task span issue covers that side.
Raised by Chris Aigner from customer feedback (CRO-917). Related: getsentry/sentry-react-native#6185.
Action taken by Junior.
- Linguagem predominante
- TypeScript
- Estrelas
- 1.8k
- Forks
- 371
- Merge médio
- 22h 3min
- PRs com merge (30d)
- 106
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de getsentry/sentry-react-native
-
React-Native
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
getsentry/sentry-react-native#7073 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Improvement React-Native
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
getsentry/sentry-react-native#7055 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
React-Native Replays Task
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
getsentry/sentry-react-native#6680 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Improvement React-Native
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
getsentry/sentry-react-native#6143 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
React-Native Task User Feedbacks
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
getsentry/sentry-react-native#5932 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de getsentry/sentry-react-native
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
yavorsky/unbuilt.app#65 ·
-
CVE security
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
mckinsey/agents-at-scale-ark#4091 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
factory:subtask
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 94/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
NUS-Project-SaBai/project-sabai#386 ·
Mantenedores costumam responder em até 3 dias
-
android needs clarification
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
super-productivity/super-productivity#12105 · 3 comentários ·
Mantenedores costumam responder em até 1 dia