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
+31-92
Original file line number
Diff line number
Diff line change
@@ -6,80 +6,25 @@ declare var Raven: RavenStatic;
6
6
7
7
export=Raven;
8
8
9
-
interfaceBreadcrumbSettings{
10
-
/* Whether to collect XHR calls, defaults to true */
11
-
xhr?: boolean;
12
-
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;
9
+
interfaceRavenOptions{
10
+
/** The log level associated with this event. Default: error */
11
+
level?: string;
18
12
19
-
/* Whether to record window location and navigation, defaults to true */
20
-
location?: boolean;
21
-
}
13
+
/** The name of the logger used by Sentry. Default: javascript */
14
+
logger?: string;
22
15
23
-
interfaceCommonRavenOptions{
24
16
/** The environment of the application you are monitoring with Sentry */
25
17
environment?: string;
26
18
27
19
/** The release version of the application you are monitoring with Sentry */
28
20
release?: string;
29
21
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" */
/** set to true to get the strack trace of your message */
43
+
stacktrace?: boolean;
97
44
98
-
/** 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;
45
+
extra?: any;
100
46
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;
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[];
103
49
104
50
/** A function which allows mutation of the data payload right before being sent to Sentry */
105
51
dataCallback?: (data: any)=>any;
106
-
}
107
52
108
-
interfaceRavenWrapOptionsextendsRavenOptions{
109
-
/**
110
-
* Whether to run the wrap recursively, defaults to false.
111
-
*/
112
-
deep?: boolean;
113
-
}
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;
114
58
115
-
/**
116
-
* General details about the user to be logged to Sentry.
117
-
*/
118
-
interfaceRavenUserContext{
119
-
id?: string;
120
-
username?: string;
121
-
email?: string;
59
+
/** Override the default HTTP data transport handler. */
0 commit comments