MCPcopy Create free account
hub / github.com/getsentry/sentry-react-native / addBreadcrumb

Function addBreadcrumb

packages/core/src/js/wrapper.ts:535–548  ·  view source on GitHub ↗

* Adds breadcrumb to the native scope. * @param breadcrumb Breadcrumb

(breadcrumb: Breadcrumb)

Source from the content-addressed store, hash-verified

533 * @param breadcrumb Breadcrumb
534 */
535 addBreadcrumb(breadcrumb: Breadcrumb): void {
536 if (!this.enableNative) {
537 return;
538 }
539 if (!this._isModuleLoaded(RNSentry)) {
540 throw this._NativeClientError;
541 }
542
543 RNSentry.addBreadcrumb({
544 ...breadcrumb,
545 // Process and convert deprecated levels
546 level: breadcrumb.level ? this._processLevel(breadcrumb.level) : undefined,
547 });
548 },
549
550 /**
551 * Clears breadcrumbs on the native scope.

Callers 11

feedback.test.tsFile · 0.90
checkMethod · 0.90
_logTouchEventMethod · 0.90
handleStateChangeFunction · 0.90
recordDeepLinkFunction · 0.90
wrapNavigationMethodFunction · 0.90
startIdleNavigationSpanFunction · 0.90
addGestureBreadcrumbFunction · 0.90

Calls 3

_isModuleLoadedMethod · 0.80
_processLevelMethod · 0.80
addBreadcrumbMethod · 0.65

Tested by

no test coverage detected