1
1
import { BacktraceAttachment } from '../report/BacktraceAttachment' ;
2
2
import { BacktraceDatabaseConfiguration } from './BacktraceDatabaseConfiguration' ;
3
3
4
- // Submission information
5
- export type BacktraceBasicSubmissionInformation = {
6
- /**
7
- * The server address (submission URL) is required to submit exceptions from your project to your Backtrace instance.
8
- *
9
- * The Server Address must be in the following format: https://submit.backtrace.io/{subdomain}/{submission-token}/json.
10
- */
11
- url : string ;
12
- timeout ?: number ;
13
- ignoreSslCertificate ?: boolean ;
14
- } ;
15
- export type BacktraceLegacySubmitInformation = BacktraceBasicSubmissionInformation & { token : string } ;
16
- export type BacktraceSubmissionInformation = BacktraceBasicSubmissionInformation | BacktraceLegacySubmitInformation ;
17
-
18
- export type BacktraceMetricsSupport = {
4
+ export interface BacktraceMetricsSupport {
19
5
metricsSubmissionUrl ?: string ;
20
6
enable : boolean ;
21
7
ignoreSslCertificate ?: boolean ;
@@ -24,14 +10,33 @@ export type BacktraceMetricsSupport = {
24
10
* By default, session events are sent on application startup/finish, and every 30 minutes while the game is running.
25
11
*/
26
12
autoSendInterval ?: number ;
27
- } ;
13
+ }
14
+
15
+ export interface BacktraceConfiguration {
16
+ /**
17
+ * The server address (submission URL) is required to submit exceptions from your project to your Backtrace instance.
18
+ *
19
+ * The Server Address must be in the following format: https://submit.backtrace.io/{subdomain}/{submission-token}/json
20
+ *
21
+ * For users who need to use a direct URL to the Backtrace instance, the server address must be in the following format:
22
+ * https://universe-name.sp.backtrace.io:6098/
23
+ *
24
+ * The direct submission URL requires an optional token to be available.
25
+ */
26
+ url : string ;
27
+
28
+ /**
29
+ * Submission token - the token is required only if the user uses direct submission URL to Backtrace.
30
+ */
31
+ token ?: string ;
32
+ timeout ?: number ;
33
+ ignoreSslCertificate ?: boolean ;
28
34
29
- export type BasicBacktraceClientSettings = BacktraceBasicSubmissionInformation & {
30
35
/**
31
36
* Limits the number of reports the client will send per minute. If set to '0', there is no limit.
32
37
* If set to a value greater than '0' and the value is reached, the client will not send any reports until the next minute.
33
38
*/
34
- rateLimit : number ;
39
+ rateLimit ? : number ;
35
40
/**
36
41
* Attributes are additional metadata that can be attached to error and crash reports. You can use attributes to filter,
37
42
* aggregate, analyze, and debug errors in the Backtrace console.
@@ -46,6 +51,8 @@ export type BasicBacktraceClientSettings = BacktraceBasicSubmissionInformation &
46
51
* Metrics such as crash free users and crash free sessions
47
52
*/
48
53
metrics ?: BacktraceMetricsSupport ;
49
- } ;
50
-
51
- export type BacktraceConfiguration = BasicBacktraceClientSettings & BacktraceDatabaseConfiguration ;
54
+ /**
55
+ * Offline database settings
56
+ */
57
+ database ?: BacktraceDatabaseConfiguration ;
58
+ }
0 commit comments