getsentry / getsentry/sentry-java

Compose Navigation - spans not linking to navigation created transaction

Ouverte
#3,903 1 commentaire 0 réactions 1 personne assignée Réclamée par @markushi Voir sur GitHub
Android Improvement Spans
Langage dominant
Kotlin
Étoiles
1.4k
Forks
478
Merge moyen
2 j 23 h
PR mergées (30 j)
67

Description

### Integration

sentry-android

### Build System

Gradle

### AGP Version

8.3.2

### Proguard

Enabled

### Version

7.16.0

### Steps to Reproduce

Was chatting to support and asked to add info here. ([#137117]())

App is is setup using the following

**Plugins**

```
id("io.sentry.android.gradle") version "4.13.0"
id("io.sentry.kotlin.compiler.gradle") version "4.13.0"
```

**Libraries**

```
sentry-base = "io.sentry:sentry-android:7.16.0"
sentry-compose = "io.sentry:sentry-compose-android:7.16.0"
```

When clicking around the app we eventually see relevant navigation transactions (as a result of the sentry plugin hooking into the navigation)
However all the spans are grouped inside the main activity transaction.

Main Activity Transaction

![Image](https://uploads.linear.app/3ed206af-f87a-40aa-82a0-150bf83e43e6/89804fd1-651d-4ddb-8545-b76c305fe6b8/703872bc-1f3c-49bc-9d19-b5ccd310aabd?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzNlZDIwNmFmLWY4N2EtNDBhYS04MmEwLTE1MGJmODNlNDNlNi84OTgwNGZkMS02NTFkLTRkZGItODU0NS1iNzZjMzA1ZmU2YjgvNzAzODcyYmMtMWYzYy00OWJjLTlkMTktYjVjY2QzMTBhYWJkIiwiaWF0IjoxNzg1NDc5MDIzLCJleHAiOjE4MTcwNDk1ODN9.GKtpIDxUZadLWYsogZ50iKiUNPuYfxsj7kI33Lw7-s0)

Navigation Transaction

![Image](https://uploads.linear.app/3ed206af-f87a-40aa-82a0-150bf83e43e6/6ec51405-f21d-4d68-b4a1-584dedb6fc9c/dafcc83e-f6b5-406e-9e10-6c5447196b38?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzNlZDIwNmFmLWY4N2EtNDBhYS04MmEwLTE1MGJmODNlNDNlNi82ZWM1MTQwNS1mMjFkLTRkNjgtYjRhMS01ODRkZWRiNmZjOWMvZGFmY2M4M2UtZjZiNS00MDZlLTllMTAtNmM1NDQ3MTk2YjM4IiwiaWF0IjoxNzg1NDc5MDIzLCJleHAiOjE4MTcwNDk1ODN9.VeibgBEW-ERxx23b4Za1d8L7NoGFkaYScDG-4RKEdp0)

### Expected Result

For all related spans to be correctly grouped under each navigation transaction

### Actual Result

See steps to reproduce.
Spans are being grouped under main activity transaction.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.