Skip to content

Update @prisma/instrumentation to latest #15063

@kentcdodds

Description

@kentcdodds

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPackage: nodeIssues related to the Sentry Node SDK

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions