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

Integrate Sentry Prisma ORM #98

Open
nickbullll opened this issue Oct 16, 2022 · 2 comments
Open

Integrate Sentry Prisma ORM #98

nickbullll opened this issue Oct 16, 2022 · 2 comments

Comments

@nickbullll
Copy link

nickbullll commented Oct 16, 2022

Hey, any idea how can I integrate Prisma ORM? Official setup from Sentry doesn't work.

import { PrismaClient } from '@prisma/client';
import * as Sentry from '@sentry/node';
import * as Tracing from '@sentry/tracing';

const client = new PrismaClient();

Sentry.init({
  dsn: key,
  release: '1.0',
  tracesSampleRate: 1.0,
  integrations: [new Tracing.Integrations.Prisma({ client })],
});

https://docs.sentry.io/platforms/node/performance/database/opt-in/

@ahmadalfy
Copy link

When I integrated that using the plugin, the application stop responding. I had to remove that and integrate Sentry manually using a nest exception filter.

@tastafur
Copy link

For this, prism would have to be integrated with the instance, already created of prism in nestjs, I tried for a while and couldn't get it, trying to put it in the library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants