You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A pattern for error messages which should not be sent to Sentry.
45
-
* By default, all errors will be sent.
63
+
* Transport object that should be used to send events to Sentry
46
64
*/
47
-
ignoreErrors?: Array<string|RegExp>;
65
+
transport: TransportClass<Transport>;
48
66
49
67
/**
50
-
* Transport object that should be used to send events to Sentry
68
+
* A stack parser implementation
69
+
* By default, a stack parser is supplied for all supported platforms
51
70
*/
52
-
transport?: TransportClass<Transport>;
71
+
stackParser: StackParser;
53
72
54
73
/**
55
74
* Options for the default transport that the SDK uses.
56
75
*/
57
76
transportOptions?: TransportOptions;
58
77
59
78
/**
60
-
* A URL to an envelope tunnel endpoint. An envelope tunnel is an HTTP endpoint
61
-
* that accepts Sentry envelopes for forwarding. This can be used to force data
62
-
* through a custom server independent of the type of data.
79
+
* Sample rate to determine trace sampling.
80
+
*
81
+
* 0.0 = 0% chance of a given trace being sent (send no traces) 1.0 = 100% chance of a given trace being sent (send
82
+
* all traces)
83
+
*
84
+
* Tracing is enabled if either this or `tracesSampler` is defined. If both are defined, `tracesSampleRate` is
85
+
* ignored.
63
86
*/
64
-
tunnel?: string;
87
+
tracesSampleRate?: number;
65
88
66
89
/**
67
-
* The release identifier used when uploading respective source maps. Specify
68
-
* this value to allow Sentry to resolve the correct source maps when
69
-
* processing events.
90
+
* Initial data to populate scope.
70
91
*/
71
-
release?: string;
72
-
73
-
/** The current environment of your application (e.g. "production"). */
74
-
environment?: string;
75
-
76
-
/** Sets the distribution for all events */
77
-
dist?: string;
92
+
initialScope?: CaptureContext;
78
93
79
94
/**
80
95
* The maximum number of breadcrumbs sent with events. Defaults to 100.
81
96
* Values over 100 will be ignored and 100 used instead.
82
97
*/
83
-
maxBreadcrumbs?: number;
98
+
maxBreadcrumbs: number;
84
99
85
100
/** A global sample rate to apply to all events (0 - 1). */
86
-
sampleRate?: number;
87
-
88
-
/** Attaches stacktraces to pure capture message / log integrations */
89
-
attachStacktrace?: boolean;
101
+
sampleRate: number;
90
102
91
103
/** Maximum number of chars a single value can have before it will be truncated. */
92
-
maxValueLength?: number;
104
+
maxValueLength: number;
93
105
94
106
/**
95
107
* Maximum number of levels that normalization algorithm will traverse in objects and arrays.
@@ -100,7 +112,7 @@ export interface Options {
100
112
* - `extra`
101
113
* Defaults to `3`. Set to `0` to disable.
102
114
*/
103
-
normalizeDepth?: number;
115
+
normalizeDepth: number;
104
116
105
117
/**
106
118
* Maximum number of properties or elements that the normalization algorithm will output in any single array or object included in the normalized event.
@@ -111,7 +123,7 @@ export interface Options {
111
123
* - `extra`
112
124
* Defaults to `1000`
113
125
*/
114
-
normalizeMaxBreadth?: number;
126
+
normalizeMaxBreadth: number;
115
127
116
128
/**
117
129
* Controls how many milliseconds to wait before shutting down. The default is
@@ -120,41 +132,20 @@ export interface Options {
120
132
* high can cause the application to block for users with network connectivity
121
133
* problems.
122
134
*/
123
-
shutdownTimeout?: number;
135
+
shutdownTimeout: number;
124
136
125
137
/**
126
-
* Sample rate to determine trace sampling.
127
-
*
128
-
* 0.0 = 0% chance of a given trace being sent (send no traces) 1.0 = 100% chance of a given trace being sent (send
129
-
* all traces)
130
-
*
131
-
* Tracing is enabled if either this or `tracesSampler` is defined. If both are defined, `tracesSampleRate` is
132
-
* ignored.
133
-
*/
134
-
tracesSampleRate?: number;
135
-
136
-
/**
137
-
* A flag enabling Sessions Tracking feature.
138
-
* By default, Sessions Tracking is enabled.
139
-
*/
140
-
autoSessionTracking?: boolean;
141
-
142
-
/**
143
-
* Send SDK Client Reports.
144
-
* By default, Client Reports are enabled.
145
-
*/
146
-
sendClientReports?: boolean;
147
-
148
-
/**
149
-
* Initial data to populate scope.
138
+
* A pattern for error messages which should not be sent to Sentry.
139
+
* By default, all errors will be sent.
150
140
*/
151
-
initialScope?: CaptureContext;
141
+
ignoreErrors?: Array<string|RegExp>;
152
142
153
143
/**
154
-
* A stack parser implementation or an array of stack line parsers
155
-
* By default, a stack parser is supplied for all supported browsers
144
+
* A URL to an envelope tunnel endpoint. An envelope tunnel is an HTTP endpoint
145
+
* that accepts Sentry envelopes for forwarding. This can be used to force data
146
+
* through a custom server independent of the type of data.
156
147
*/
157
-
stackParser?: StackParser|StackLineParser[];
148
+
tunnel?: string;
158
149
159
150
/**
160
151
* Set of metadata about the SDK that can be internally used to enhance envelopes and events,
0 commit comments