withSentryObservableEffect

fun NavHostController.withSentryObservableEffect(enableNavigationBreadcrumbs: Boolean = true, enableNavigationTracing: Boolean = true): NavHostController

A DisposableEffect that captures a Breadcrumb and starts an ITransaction and sends them to Sentry for every navigation event when being attached to the respective NavHostController.

Parameters

enableNavigationBreadcrumbs

Whether the integration should capture breadcrumbs for navigation events.

enableNavigationTracing

Whether the integration should start a new ITransaction with SentryOptions.idleTimeout for navigation events.