Skip to content

1.4.0

Latest
Compare
Choose a tag to compare
@getsentry-bot getsentry-bot released this 07 Oct 15:46

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,
  });

Dependencies