Features
- Sentry Replay Support (#354)
How to use:
Replay, profiling and performance monitoring are bundled into Sentry Cordova, all you need to do is to initialise the SDK, include the desired feature and use the sampling filters:
/***
* @type {import("sentry-cordova")}
*/
var Sentry = cordova.require("sentry-cordova.Sentry");
Sentry.init({
dsn: YOUR_DSN,
integrations: [
// Replay integration.
Sentry.replayIntegration({
maskAllText: true,
blockAllMedia: true,
}),
// Tracing integration.
Sentry.browserTracingIntegration(),
],
// Replay sampling filters.
replaysSessionSampleRate: 1,
replaysOnErrorSampleRate: 1,
// Tracing sampling filter.
tracesSampleRate: 1,
});