Custom Integrations

Add a custom integration to your JavaScript using the following format:

Copied
import * as Sentry from "@sentry/browser";

// All integration that come with an SDK can be found on Sentry.Integrations object
// Custom integration must conform Integration interface: https://github.com/getsentry/sentry-javascript/blob/master/packages/types/src/integration.ts

Sentry.init({
  dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
  integrations: [new MyAwesomeIntegration()],
});
You can edit this page on GitHub.