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
9.39
Framework Version
Next.js 15.3
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
TRPC is being used with SSR and CSR.
const sentryMiddleware = t.middleware(Sentry.trpcMiddleware()) // tried with all input options
export const procedure = t.procedure.use(sentryMiddleware)
Expected Result
I see no traces tagged as TRPC spans, neither the server-side nor the client-side.
Actual Result
These prisma:client:operation spans should be wrapped in a TRPC operation because they are being initiated through one.

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
9.39
Framework Version
Next.js 15.3
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
TRPC is being used with SSR and CSR.
Expected Result
I see no traces tagged as TRPC spans, neither the server-side nor the client-side.
Actual Result
These
prisma:client:operationspans should be wrapped in a TRPC operation because they are being initiated through one.