Eventvisor

Third-party integrations

module-sentry-browser

Sentry Browser module allows integrating Eventvisor SDKs with Sentry in your browser-based applications.

Installation

Install with npm in your application:

Command
$ npm install --save \
@eventvisor/sdk \
@eventvisor/module-sentry-browser

Setting up

And then set it up when initializing the SDK:

import { createInstance } from "@eventvisor/sdk";
import { createSentryBrowserModule } from "@eventvisor/module-sentry-browser";
import * as Sentry from "@sentry/browser";
const eventvisor = createInstance({
modules: [
createSentryBrowserModule({
Sentry: Sentry, // your Sentry instance
}),
]
});

Usage example

In your destination definition:

destinations/analytics.yml
# ...
transport: sentry-browser
Previous
Segment