Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Enable Sentry #16

Closed
vpetersson opened this issue Sep 9, 2022 · 0 comments · Fixed by #22
Closed

Enable Sentry #16

vpetersson opened this issue Sep 9, 2022 · 0 comments · Fixed by #22
Assignees

Comments

@vpetersson
Copy link
Contributor

We want to enable Sentry to ensure we catch issues with the app.

Installation

# Using yarn
yarn add @sentry/browser @sentry/tracing
# Using npm
npm install --save @sentry/browser @sentry/tracing

Stage

import * as Sentry from "@sentry/browser";
import { BrowserTracing } from "@sentry/tracing";

Sentry.init({
  dsn: "https://[email protected]/6734345",
  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,
});

Production

import * as Sentry from "@sentry/browser";
import { BrowserTracing } from "@sentry/tracing";

Sentry.init({
  dsn: "https://[email protected]/6734348",
  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,
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants