Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐Ÿท๏ธ Add typings for app hang functionality #2479

Merged
merged 3 commits into from
Sep 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions src/js/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface BaseReactNativeOptions {
* When enabled, certain personally identifiable information (PII) is added by active integrations.
*
* @default false
* */
*/
sendDefaultPii?: boolean;

/**
Expand All @@ -73,7 +73,7 @@ export interface BaseReactNativeOptions {
* https://docs.sentry.io/platforms/apple/guides/ios/configuration/out-of-memory/
*
* @default true
* */
*/
enableOutOfMemoryTracking?: boolean;

/**
Expand All @@ -88,16 +88,35 @@ export interface BaseReactNativeOptions {
* Read more at https://docs.sentry.io/platforms/react-native/troubleshooting/#unhandled-promise-rejections
*
* When disabled, this option will not disable unhandled rejection tracking. Set `onunhandledrejection: false` on the `ReactNativeErrorHandlers` integration instead.
*
* @default true
*/
patchGlobalPromise?: boolean;

/**
* The max cache items for capping the number of envelopes.
*
* @default 30
*/
* The max cache items for capping the number of envelopes.
*
* @default 30
*/
maxCacheItems?: number;

/**
* When enabled, the SDK tracks when the application stops responding for a specific amount of
* time defined by the `appHangTimeoutInterval` option.
*
* @default true
*/
sandergo90 marked this conversation as resolved.
Show resolved Hide resolved
enableAppHangTracking?: boolean;

/**
* The minimum amount of time an app should be unresponsive to be classified as an App Hanging.
* The actual amount may be a little longer.
* Avoid using values lower than 100ms, which may cause a lot of app hangs events being transmitted.
* Value should be in seconds.
*
* @default 2
*/
appHangsTimeoutInterval?: number;
}

/**
Expand Down