-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathBacktraceDatabaseConfiguration.ts
More file actions
56 lines (48 loc) · 1.74 KB
/
BacktraceDatabaseConfiguration.ts
File metadata and controls
56 lines (48 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
export interface EnabledBacktraceDatabaseConfiguration {
/**
* Determine if the Database is enabled
*/
enable: true;
/**
* Sends reports to the server based on the retry settings.
* If the value is set to 'false', you can use the Flush or Send methods as an alternative.
*/
autoSend?: boolean;
/**
* The maximum number of reports stored in the offline database. When the limit is reached,
* the oldest reports are removed. If the value is equal to '0', then no limit is set.
* @default 8
*/
maximumNumberOfRecords?: number;
/**
* The amount of time (in ms) to wait between retries if the database is unable to send a report.
* The default value is 60 000
*/
retryInterval?: number;
/**
* The maximum number of retries to attempt if the database is unable to send a report.
* @default 3
*/
maximumRetries?: number;
/**
* Captures and symbolicates stack traces for native crashes if the runtime supports this.
* A crash report is generated, stored locally, and uploaded upon next start.
*/
captureNativeCrashes?: boolean;
/**
* Controls how much previous session caches to preserve before sending data from previous sessions.
* This does not remove unsent reports, only session files, like breadcrumbs stored on disk.
* @default 1
*/
maximumOldSessions?: number;
}
export interface DisabledBacktraceDatabaseConfiguration
extends Omit<Partial<EnabledBacktraceDatabaseConfiguration>, 'enable'> {
/**
* Determine if the Database is enable
*/
enable?: false;
}
export type BacktraceDatabaseConfiguration =
| EnabledBacktraceDatabaseConfiguration
| DisabledBacktraceDatabaseConfiguration;