We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cac1a0 commit 7cf423fCopy full SHA for 7cf423f
src/raven.js
@@ -359,6 +359,21 @@ var Raven = {
359
return Raven;
360
},
361
362
+ /**
363
+ * Override the default HTTP transport mechanism that transmits data
364
+ * to the Sentry server.
365
+ *
366
+ * @param {function} transport Function invoked instead of the default
367
+ * `makeRequest` handler.
368
369
+ * @return {Raven}
370
+ */
371
+ setTransport: function(transport) {
372
+ globalOptions.transport = transport;
373
+
374
+ return Raven;
375
+ },
376
377
/*
378
* Get the latest raw exception that was captured by Raven.
379
*
0 commit comments