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

Update @prisma/instrumentation to latest #15063

Open
3 tasks done
kentcdodds opened this issue Jan 18, 2025 · 1 comment
Open
3 tasks done

Update @prisma/instrumentation to latest #15063

kentcdodds opened this issue Jan 18, 2025 · 1 comment
Labels
Package: node Issues related to the Sentry Node SDK Waiting for: Product Owner

Comments

@kentcdodds
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

8.50.0

Framework Version

No response

Link to Sentry event

https://kent-c-dodds-tech-llc.sentry.io/issues/6224735347/?query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream&stream_index=0

Reproduction Example/SDK Setup

https://github.com/epicweb-dev/epic-stack/blob/main/server/utils/monitoring.ts

The most relevant bit is that I'm using Sentry.prismaIntegration().

Steps to Reproduce

  1. Install the latest @prisma/client and @sentry/node packages in one project
  2. Notice the error

Expected Result

No errors

Actual Result

Error:

prisma:error this.getGlobalTracingHelper(...).dispatchEngineSpans is not a function
healthcheck ❌ {
error: TypeError: this.getGlobalTracingHelper(...).dispatchEngineSpans is not a function
at ho.dispatchEngineSpans (/myapp/node_modules/@prisma/client/runtime/library.js:121:1715)
at Object.connect (/myapp/node_modules/@prisma/client/runtime/library.js:111:11492)
at t (/myapp/node_modules/@prisma/client/runtime/library.js:112:2309) {
clientVersion: '6.1.0'
}
}
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: this.getGlobalTracingHelper(...).dispatchEngineSpans is not a function
at ho.dispatchEngineSpans (/myapp/node_modules/@prisma/client/runtime/library.js:121:1715)
at Object.connect (/myapp/node_modules/@prisma/client/runtime/library.js:111:11492)
at t (/myapp/node_modules/@prisma/client/runtime/library.js:112:2309)
HEAD / 200 - - 123.095 ms
TypeError: this.getGlobalTracingHelper(...).dispatchEngineSpans is not a function
TypeError: this.getGlobalTracingHelper(...).dispatchEngineSpans is not a function
at ho.dispatchEngineSpans (/myapp/node_modules/@prisma/client/runtime/library.js:121:1715)
at Object.connect (/myapp/node_modules/@prisma/client/runtime/library.js:111:11492)
at t (/myapp/node_modules/@prisma/client/runtime/library.js:112:2309

Related: prisma/prisma#25978

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: node Issues related to the Sentry Node SDK Waiting for: Product Owner
Projects
Status: Waiting for: Product Owner
Development

No branches or pull requests

2 participants