Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sentry no longer supports tracing as a seperate package #9542

Merged
merged 7 commits into from Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 2 additions & 6 deletions packages/cli/src/commands/experimental/setupSentryHandler.js
Expand Up @@ -26,12 +26,8 @@ export const handler = async ({ force }) => {
const notes = []

const tasks = new Listr([
addApiPackages([
'@envelop/sentry@5',
'@sentry/node@7',
'@sentry/tracing@7',
]),
addWebPackages(['@sentry/react@7', '@sentry/tracing@7']),
addApiPackages(['@envelop/sentry@5', '@sentry/node@7']),
addWebPackages(['@sentry/react@7', '@sentry/browser@7']),
addEnvVarTask(
'SENTRY_DSN',
'https://XXXXXXX@XXXXXXX.ingest.sentry.io/XXXXXXX',
Expand Down
@@ -1,12 +1,11 @@
import * as Sentry from '@sentry/node'
import * as Tracing from '@sentry/tracing'

import { db as client } from 'src/lib/db'

Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
integrations: [new Tracing.Integrations.Prisma({ client })],
integrations: [new Sentry.Integrations.Prisma({ client })],
tracesSampleRate: 1.0,
})

Expand Down
@@ -1,10 +1,9 @@
import * as Sentry from '@sentry/react'
import { BrowserTracing } from '@sentry/tracing'

Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
integrations: [new BrowserTracing()],
integrations: [new Sentry.BrowserTracing()],
tracesSampleRate: 1.0,
})

Expand Down