exampleBreadcrumb function
void
exampleBreadcrumb()
Breadcrumbs — the ingress contract (ERH-020).
ALWAYS emit breadcrumbs via Logger.breadcrumb(...) / logBreadcrumb(...),
NEVER Sentry.addBreadcrumb(...) directly. The Logger applies the
breadcrumbLevel gate (default info, lowerable via Remote Config) + central
fail-closed redaction, then forwards to the attached reporter (or buffers it
pre-attach). A direct SDK call bypasses both — and is only caught by the
beforeBreadcrumb safety net.
The optional level: param sets the breadcrumb's own level (default
LogLevel.info — ERH-031); a crumb below breadcrumbLevel is dropped.
Implementation
void exampleBreadcrumb() {
/*
logBreadcrumb('user tapped Generate', category: 'ui'); // info
logBreadcrumb('cache miss; refetching', category: 'data', level: LogLevel.debug);
*/
}