getsentry / getsentry/sentry-java

Compose Navigation - spans not linking to navigation created transaction

オープン
#3,903 コメント 1 件 リアクション 0 件 担当者 1 名 @markushi が担当を希望しています GitHub で見る
Android Improvement Spans
主要言語
Kotlin
スター
1.4k
フォーク
478
平均マージ
2日 23時間
マージ済み PR(30日)
67

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。