Support span links for auto-instrumented network spans on Android
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 32/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Área
- mobile, observability
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
--
- Lenguaje dominante
- Kotlin
- Estrellas
- 1.4k
- Forks
- 483
- Merge medio
- 2 d 54 min
- PR fusionados (30 d)
- 207
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/sentry-java
-
Test the `sentry wizard` Android portPosiblemente ocupada @antonis la tomó hace 1 día. AbiertoPlatform: Java
getsentry/sentry-java#6797 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Narrow and clean up Android consumer keep rulesPosiblemente ocupada @runningcode la tomó hace 3 días. AbiertoAndroid Platform: Java
getsentry/sentry-java#6771 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Android Bug Platform: Java Waiting for: Product Owner
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
getsentry/sentry-java#6758 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Android Bug Platform: Java Replays
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
getsentry/sentry-java#6741 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Android Bug Platform: Java Replays
Dificultad 3/5 1-2 días Aptitud para principiantes 50/100
getsentry/sentry-java#6740 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/sentry-java
Issues similares
-
[BUG] Issue reported from ReFraAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
IacobIonut01/ReFra#1515 · 1 comentario ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
openwatersio/slackwater-android#162 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 Medio día Aptitud para principiantes 72/100
developmentwithyash/yaan#184 ·
Los mantenedores suelen responder en 1 día
-
analytics
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
🐛 Type:Bug 📏 Size: S 🔧 State:In Progress 🔹 Priority: P2 - Medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
yeliqin666/xjtu-toolbox-android#623 · 1 comentario ·