You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose new withSentryObservableEffect method overload with SentryNavigationListener (#4143)
* FEAT: Add version of withSentryObservableEffect that has better interop with fragment navigation
* Changelog
* pr id
---------
Co-authored-by: Andy Zolyak <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,9 @@
9
9
### Features
10
10
11
11
- Create onCreate and onStart spans for all Activities ([#4025](https://github.com/getsentry/sentry-java/pull/4025))
12
-
- Add split apks info to the `App` context ([#3193](https://github.com/getsentry/sentry-java/pull/3193)))
12
+
- Add split apks info to the `App` context ([#3193](https://github.com/getsentry/sentry-java/pull/3193))
13
+
- Expose new `withSentryObservableEffect` method overload that accepts `SentryNavigationListener` as a parameter ([#4143](https://github.com/getsentry/sentry-java/pull/4143))
14
+
- This allows sharing the same `SentryNavigationListener` instance across fragments and composables to preserve the trace
Copy file name to clipboardExpand all lines: sentry-compose/api/android/sentry-compose.api
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ public final class io/sentry/compose/SentryModifier {
18
18
}
19
19
20
20
public final class io/sentry/compose/SentryNavigationIntegrationKt {
21
+
public static final fun withSentryObservableEffect (Landroidx/navigation/NavHostController;Lio/sentry/android/navigation/SentryNavigationListener;Landroidx/compose/runtime/Composer;I)Landroidx/navigation/NavHostController;
21
22
public static final fun withSentryObservableEffect (Landroidx/navigation/NavHostController;ZZLandroidx/compose/runtime/Composer;II)Landroidx/navigation/NavHostController;
0 commit comments