getsentry / getsentry/sentry-java

Compose Navigation - spans not linking to navigation created transaction

Offen
#3,903 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @markushi Auf GitHub ansehen
Android Improvement Spans
Vorherrschende Sprache
Kotlin
Sterne
1.4k
Forks
478
Ø Merge
2 T. 23 Std.
Gemergte PRs (30 T.)
67

Beschreibung

### 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.