getsentry / getsentry/sentry-java

Compose Navigation - spans not linking to navigation created transaction

Đang mở
#3,903 1 bình luận 0 reaction 1 người được giao Được @markushi nhận Xem trên GitHub
Android Improvement Spans
Ngôn ngữ chính
Kotlin
Star
1.4k
Fork
478
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
67

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.