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
Copy file name to clipboardExpand all lines: typescript/raven.d.ts
+92-31
Original file line number
Diff line number
Diff line change
@@ -6,25 +6,80 @@ declare var Raven: RavenStatic;
6
6
7
7
export=Raven;
8
8
9
-
interfaceRavenOptions{
10
-
/** The log level associated with this event. Default: error */
11
-
level?: string;
9
+
interfaceBreadcrumbSettings{
10
+
/* Whether to collect XHR calls, defaults to true */
11
+
xhr?: boolean;
12
12
13
-
/** The name of the logger used by Sentry. Default: javascript */
14
-
logger?: string;
13
+
/* Whether to collect console logs, defaults to true */
14
+
console?: boolean;
15
+
16
+
/* Whether to collect dom events, defaults to true */
17
+
dom?: boolean;
15
18
19
+
/* Whether to record window location and navigation, defaults to true */
20
+
location?: boolean;
21
+
}
22
+
23
+
interfaceCommonRavenOptions{
16
24
/** The environment of the application you are monitoring with Sentry */
17
25
environment?: string;
18
26
19
27
/** The release version of the application you are monitoring with Sentry */
20
28
release?: string;
21
29
30
+
/** Additional data to be tagged onto the error. */
31
+
tags?: {
32
+
[id: string]: string;
33
+
};
34
+
35
+
/** Exra metadata to collect */
36
+
extra?: any;
37
+
38
+
/** The name of the logger used by Sentry. Default: javascript */
39
+
logger?: string;
40
+
}
41
+
42
+
interfaceRavenOptionsextendsCommonRavenOptions{
43
+
44
+
/** The name of the server or device that the client is running on */
45
+
server_name?: string;
46
+
47
+
/** The log level associated with this event. Default: error */
48
+
level?: string;
49
+
50
+
/** set to true to get the strack trace of your message */
51
+
stacktrace?: boolean;
52
+
53
+
/** In some cases you may see issues where Sentry groups multiple events together when they should be separate entities. In other cases, Sentry simply doesn’t group events together because they’re so sporadic that they never look the same. */
54
+
fingerprint?: string[];
55
+
56
+
/** Number of frames to trim off the stacktrace, defaults to 1 */
57
+
trimHeadFrames?: number;
58
+
59
+
/** The name of the device platform. Default: "javascript" */
/** By default, Raven does not truncate messages. If you need to truncate characters for whatever reason, you may set this to limit the length. */
99
+
maxMessageLength?: number;
46
100
47
-
/** In some cases you may see issues where Sentry groups multiple events together when they should be separate entities. In other cases, Sentry simply doesn’t group events together because they’re so sporadic that they never look the same. */
48
-
fingerprint?: string[];
101
+
/** A callback function that allows you to apply your own filters to determine if the message should be sent to Sentry. */
102
+
shouldSendCallback?: (data: any)=>boolean;
49
103
50
104
/** A function which allows mutation of the data payload right before being sent to Sentry */
51
105
dataCallback?: (data: any)=>any;
106
+
}
52
107
53
-
/** A callback function that allows you to apply your own filters to determine if the message should be sent to Sentry. */
54
-
shouldSendCallback?: (data: any)=>boolean;
55
-
56
-
/** By default, Raven does not truncate messages. If you need to truncate characters for whatever reason, you may set this to limit the length. */
57
-
maxMessageLength?: number;
108
+
interfaceRavenWrapOptionsextendsRavenOptions{
109
+
/**
110
+
* Whether to run the wrap recursively, defaults to false.
111
+
*/
112
+
deep?: boolean;
113
+
}
58
114
59
-
/** Override the default HTTP data transport handler. */
0 commit comments