Skip to content

TRPC Error shoudn't be reported by trpcMiddleware #14972

@phuctm97

Description

@phuctm97

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.48.0

Framework Version

8.48.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

Use tRPC and chain Sentry trpcMiddleware to your tRPC procedure. Any TRPC Error that was thrown within your TRPC procedure will be considered errors. However, these errors are meant to be thrown and shouldn't be considered exceptions.

Expected Result

TRPC Error should be excluded either by default or via an option when configuring Sentry trpcMiddleware.

Actual Result

Any TRPC Error that was thrown within your TRPC procedure will be considered errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPackage: nodeIssues related to the Sentry Node SDK

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions