@@ -53,7 +53,7 @@ interface RavenStatic {
53
53
addPlugin ( plugin : RavenPlugin , ...pluginArgs : any [ ] ) : RavenStatic ;
54
54
55
55
/**
56
- * Wrap code within a context so Raven can capture errors reliably across domains that is
56
+ * Wrap code within a context so Raven can capture errors reliably across domains that is
57
57
* executed immediately.
58
58
*
59
59
* @param options A specific set of options for this context
@@ -96,7 +96,7 @@ interface RavenStatic {
96
96
*/
97
97
captureMessage ( msg : string , options ?: RavenOptions ) : RavenStatic ;
98
98
99
- /**
99
+ /**
100
100
* Add a breadcrumb
101
101
* @param crumb The trail which should be added to the trail
102
102
*/
@@ -114,29 +114,29 @@ interface RavenStatic {
114
114
*/
115
115
setUserContext ( ) : RavenStatic ;
116
116
117
- /**
117
+ /**
118
118
* Add arbitrary data to be sent along with the payload.
119
119
* @param extra data of an arbitrary, nested type which will be added
120
120
*/
121
121
setExtraContext ( extra : { [ prop : string ] : any } ) : RavenStatic ;
122
122
123
- /**
123
+ /**
124
124
* Add additional tags to be sent along with payloads.
125
125
* @param tags A key/value-pair which will be added
126
126
*/
127
127
setTagsContext ( tags : { [ id : string ] : string } ) : RavenStatic ;
128
128
129
- /**
129
+ /**
130
130
* Clear the whole currently set context.
131
131
*/
132
132
clearContext ( ) : RavenStatic ;
133
133
134
- /**
134
+ /**
135
135
* Get a copy of the current context.
136
136
*/
137
137
getContext ( ) : Object ;
138
138
139
- /**
139
+ /**
140
140
* Set environment of application
141
141
* @param environment Typically something like 'production'
142
142
*/
@@ -148,7 +148,7 @@ interface RavenStatic {
148
148
*/
149
149
setRelease ( release : string ) : RavenStatic ;
150
150
151
- /**
151
+ /**
152
152
* Specify a callback function that can mutate or filter breadcrumbs when they are captured.
153
153
* @param callback The function which applies the filter
154
154
*/
@@ -182,7 +182,7 @@ interface RavenStatic {
182
182
*/
183
183
lastEventId ( ) : string ;
184
184
185
- /**
185
+ /**
186
186
* Determine if Raven is setup and ready to go.
187
187
*/
188
188
isSetup ( ) : boolean ;
@@ -237,8 +237,8 @@ export interface RavenOptions extends CommonRavenOptions {
237
237
/** The log level associated with this event. Default: error */
238
238
level ?: string ;
239
239
240
- /** In some cases you may see issues where Sentry groups multiple events together when they
241
- * should be separate entities. In other cases, Sentry simply doesn’t group events together
240
+ /** In some cases you may see issues where Sentry groups multiple events together when they
241
+ * should be separate entities. In other cases, Sentry simply doesn’t group events together
242
242
* because they’re so sporadic that they never look the same. */
243
243
fingerprint ?: string [ ] ;
244
244
@@ -288,6 +288,12 @@ export interface RavenGlobalOptions extends CommonRavenOptions {
288
288
289
289
/** A function which allows mutation of the data payload right before being sent to Sentry */
290
290
dataCallback ?: ( data : RavenOutgoingData ) => RavenOutgoingData ;
291
+
292
+ /** A function that allows filtering or mutating breadcrumb payloads. Return false to throw away the breadcrumb. */
293
+ breadcrumbCallback ?: ( data : RavenBreadcrumb ) => RavenBreadcrumb ;
294
+
295
+ /** A sampling rate to apply to events. A value of 0.0 will send no events, and a value of 1.0 will send all events (default). */
296
+ sampleRate ?: number ;
291
297
}
292
298
293
299
export interface RavenWrapOptions extends RavenOptions {
0 commit comments