Skip to content

Commit

Permalink
fix(tt): sentry config
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtaholik committed Mar 8, 2024
1 parent 7832f0f commit f4b1d38
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions apps/total-typescript/sentry.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from '@sentry/nextjs'
import {BrowserTracing} from '@sentry/tracing'
// import {BrowserTracing} from '@sentry/tracing'

const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN

Sentry.init({
integrations: [new BrowserTracing()],
// integrations: [new BrowserTracing()],
ignoreErrors: ['ResizeObserver'],
dsn:
SENTRY_DSN ||
Expand Down
2 changes: 1 addition & 1 deletion apps/total-typescript/sentry.edge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from '@sentry/nextjs'
import '@sentry/tracing'
// import '@sentry/tracing'

const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN

Expand Down
12 changes: 6 additions & 6 deletions apps/total-typescript/sentry.server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from '@sentry/nextjs'
import '@sentry/tracing'
import {ProfilingIntegration} from '@sentry/profiling-node'
// import '@sentry/tracing'
// import {ProfilingIntegration} from '@sentry/profiling-node'

const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN

Expand All @@ -16,10 +16,10 @@ Sentry.init({
tracesSampleRate: 0.2,
ignoreErrors: ['ResizeObserver'],
profilesSampleRate: 1.0, // Profiling sample rate is relative to tracesSampleRate
integrations: [
// Add profiling integration to list of integrations
new ProfilingIntegration(),
],
// integrations: [
// Add profiling integration to list of integrations
// new ProfilingIntegration(),
// ],
// ...
// Note: if you want to override the automatic release value, do not set a
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
Expand Down

0 comments on commit f4b1d38

Please sign in to comment.