npm sentry-cordova 1.4.0

13 hours ago

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

Don't miss a new sentry-cordova release

NewReleases is sending notifications on new releases.