File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
sentry-compose/src/androidMain/kotlin/io/sentry/compose Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## Unreleased
4+
5+ ### Features
6+ - Provide hook for Jetpack Compose navigation instrumentation ([ #2320 ] ( https://github.com/getsentry/sentry-java/pull/2320 ) )
7+
38## 6.6.0
49
510### Fixes
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ internal class SentryLifecycleObserver(
3737
3838/* *
3939 * A [DisposableEffect] that captures a [Breadcrumb] and starts an [ITransaction] and sends
40- * them to Sentry for when attached to the respective [NavHostController].
40+ * them to Sentry for every navigation event when being attached to the respective [NavHostController].
4141 *
4242 * @param enableNavigationBreadcrumbs Whether the integration should capture breadcrumbs for
4343 * navigation events.
@@ -73,3 +73,18 @@ public fun NavHostController.withSentryObservableEffect(
7373 }
7474 return this
7575}
76+
77+ /* *
78+ * A [DisposableEffect] that captures a [Breadcrumb] and starts an [ITransaction] and sends
79+ * them to Sentry for every navigation event when being attached to the respective [NavHostController].
80+ *
81+ * Used by the sentry android gradle plugin for Jetpack Compose instrumentation.
82+ *
83+ */
84+ @Composable
85+ internal fun NavHostController.withSentryObservableEffect (): NavHostController {
86+ return withSentryObservableEffect(
87+ enableNavigationBreadcrumbs = true ,
88+ enableNavigationTracing = true
89+ )
90+ }
You can’t perform that action at this time.
0 commit comments