-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: missing breadcrumbs and data on native crashes
- Loading branch information
farfromrefug
committed
May 28, 2024
1 parent
6b779f4
commit c555889
Showing
9 changed files
with
491 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,53 @@ | ||
export {}; | ||
import { Scope } from '@sentry/core'; | ||
import type { Attachment, Breadcrumb, User } from '@sentry/types'; | ||
/** | ||
* Extends the scope methods to set scope on the Native SDKs | ||
*/ | ||
export declare class NativescriptScope extends Scope { | ||
/** | ||
* @inheritDoc | ||
*/ | ||
setUser(user: User | null): this; | ||
/** | ||
* @inheritDoc | ||
*/ | ||
setTag(key: string, value: string): this; | ||
/** | ||
* @inheritDoc | ||
*/ | ||
setTags(tags: { | ||
[key: string]: string; | ||
}): this; | ||
/** | ||
* @inheritDoc | ||
*/ | ||
setExtras(extras: { | ||
[key: string]: any; | ||
}): this; | ||
/** | ||
* @inheritDoc | ||
*/ | ||
setExtra(key: string, extra: any): this; | ||
/** | ||
* @inheritDoc | ||
*/ | ||
addBreadcrumb(breadcrumb: Breadcrumb, maxBreadcrumbs?: number): this; | ||
/** | ||
* @inheritDoc | ||
*/ | ||
clearBreadcrumbs(): this; | ||
/** | ||
* @inheritDoc | ||
*/ | ||
setContext(key: string, context: { | ||
[key: string]: any; | ||
} | null): this; | ||
/** | ||
* @inheritDoc | ||
*/ | ||
addAttachment(attachment: Attachment): this; | ||
/** | ||
* @inheritDoc | ||
*/ | ||
clearAttachments(): this; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.