* Adds breadcrumb to the native scope. * @param breadcrumb Breadcrumb
(breadcrumb: Breadcrumb)
| 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. |
no test coverage detected