Might be related to this NewRelic issue: newrelic/node-newrelic#1984
Using the latest Prisma v5.18.0 results in this error when running vitest tests in Github Action (with datadog/test-visibility-github-action@v1):
(node:2572) Error: 'import-in-the-middle' failed to wrap
'file:///home/runner/work/<project>/node_modules/@prisma/client/default.js'
Same error also happens when running locally, so it is not the action causing this.
Unsure if this is a fix on dd-trace's end, import-in-the-middle, or Prisma.
Now back testing to see which version first caused dd-trace to stop working.
EDIT: First apeared in v5.11.0 of Prisma.
This error does not happen in v5.10.2 of Prisma.