Support span links for auto-instrumented network spans on Android
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
- 32/100
- Tipo de issue
- Funcionalidade
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Ativa
- Domínio
- mobile, observability
Direção de pesquisa
No Android networking integration, context-management files, or tests are named. Start by locating the Android auto-instrumented network-span and span/context APIs, then compare the linked OpenTelemetry and Sentry span-link guidance. Done requires an agreed API or instrumentation hook that preserves the existing parent, supports explicit links, and has verified Trace View behavior.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem Statement
An Android application using Kotlin needs to associate an auto-instrumented network span with other relevant operations while retaining one parent.
A simplified illustration of the requested workflow:
- Operation A supplies the current context for network span parenting.
- Operation B is also running outside that context.
- A network request creates span N under A.
- The requester wants to link N to B as well, potentially across traces.
The requester described bindToScope in their mobile setup and asked for both Cocoa and Android support. They have not supplied the Android networking integration or context-management code. This is not a verified Android bug reproduction.
- Choosing one parent leaves other overlapping operations out of the debugging context.
- The requester thinks viewing and following links in Trace View may be sufficient. Navigation direction and a need for search, filtering, or aggregation remain unconfirmed.
- No workaround for the additional relationships has been reported. A rollout blocker and quantified debugging cost have not been established.
- A seven-day telemetry sample observed
sentry.java.android8.53.0 and 8.47.0 on September 24, 2026. These are deployed versions, not verified minimum affected versions. Kotlin Multiplatform is not confirmed and is outside this request's scope.
Solution Brainstorm
Provide a supported way to add links to auto-instrumented network spans without replacing their parent or duplicating the span.
- OpenTelemetry's span-link documentation describes links to one or more spans as causal relationships. The requester asked to link all active spans but welcomes guidance. Time overlap alone does not establish causality, so automatic linking to every active span is not a requirement.
- Sentry's span-link development guidance describes links at span creation and an
addLinkmethod on the span interface. Links identify the target trace and span. This is the proposed model, not evidence that Android implements these APIs. - Assess which API or instrumentation hook would let application code attach links to automatically created network spans. The desired result is to inspect and follow those relationships in Trace View. Cross-trace behavior and navigation direction need assessment.
If better parent selection or a view of concurrent operations fits the need better, guidance on that alternative would help.
Related Cocoa request: sentry-cocoa #9165.
via ben.davis.
--
- Linguagem predominante
- Kotlin
- Estrelas
- 1.4k
- Forks
- 483
- Merge médio
- 2d 54min
- PRs com merge (30d)
- 207
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-java
-
Test the `sentry wizard` Android portTalvez já em andamento @antonis assumiu há 1 dia. AbertaPlatform: Java
getsentry/sentry-java#6797 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Narrow and clean up Android consumer keep rulesTalvez já em andamento @runningcode assumiu há 3 dias. AbertaAndroid Platform: Java
getsentry/sentry-java#6771 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Android Bug Platform: Java Waiting for: Product Owner
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
getsentry/sentry-java#6758 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
Android Bug Platform: Java Replays
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 62/100
getsentry/sentry-java#6741 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Android Bug Platform: Java Replays
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 50/100
getsentry/sentry-java#6740 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de getsentry/sentry-java
Issues semelhantes
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
IacobIonut01/ReFra#1515 · 1 comentário ·
Mantenedores costumam responder em até 4 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
openwatersio/slackwater-android#162 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 Meio dia Facilidade para iniciantes 72/100
developmentwithyash/yaan#184 ·
Mantenedores costumam responder em até 1 dia
-
analytics
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
-
🐛 Type:Bug 📏 Size: S 🔧 State:In Progress 🔹 Priority: P2 - Medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
yeliqin666/xjtu-toolbox-android#623 · 1 comentário ·