getsentry / getsentry/sentry-java

Compose Navigation - spans not linking to navigation created transaction

Open
#3,903 1 comment 0 reactions 1 assignee Claimed by @markushi View on GitHub
Android Improvement Spans
Dominant language
Kotlin
Stars
1.4k
Forks
478
Avg merge
2d 23h
Merged PRs (30d)
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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.