Sentry tRPC middleware that names the handling transaction after the called procedure.

Use the Sentry tRPC middleware in combination with the Sentry server integration, e.g. Express Request Handlers or Next.js SDK.

Please use the top level export instead:

// OLD
import * as Sentry from '@sentry/node';
Sentry.Handlers.trpcMiddleware();

// NEW
import * as Sentry from '@sentry/node';
Sentry.trpcMiddleware();
  • Sentry tRPC middleware that names the handling transaction after the called procedure.

    Use the Sentry tRPC middleware in combination with the Sentry server integration, e.g. Express Request Handlers or Next.js SDK.

    Parameters

    • Optionaloptions: SentryTrpcMiddlewareOptions

    Returns <T>({ path, type, next, rawInput }: TrpcMiddlewareArguments<T>) => T