vulpemventures / marina

Liquid Wallet browser extension
MIT License
38 stars 19 forks source link

Add Sentry for errors tracking #411

Closed tiero closed 10 months ago

tiero commented 2 years ago
yarn add @sentry/react @sentry/tracing
import * as Sentry from "@sentry/react";
import { BrowserTracing } from "@sentry/tracing";

Sentry.init({
  dsn: "https://98376d41178a4faa8d42c4d5c17b146d@o227269.ingest.sentry.io/6763898",
  integrations: [new BrowserTracing()],

  // Set tracesSampleRate to 1.0 to capture 100%
  // of transactions for performance monitoring.
  // We recommend adjusting this value in production
  tracesSampleRate: 1.0,
});