Skip to content

Sentry TRPC integration is not working #17075

@ghost

Description

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.

Image

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions