We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 043013f commit 4d16e63Copy full SHA for 4d16e63
packages/node/src/trpc.ts
@@ -18,7 +18,7 @@ interface TrpcMiddlewareArguments<T> {
18
* Use the Sentry tRPC middleware in combination with the Sentry server integration. (e.g. express integration or
19
* Next.js SDK)
20
*/
21
-export async function sentryTrpcMiddleware(options: SentryTrpcMiddlewareOptions) {
+export async function sentryTrpcMiddleware(options: SentryTrpcMiddlewareOptions = {}) {
22
return async function <T>({ path, type, next, rawInput }: TrpcMiddlewareArguments<T>): Promise<T> {
23
const hub = getCurrentHub();
24
const clientOptions = hub.getClient()?.getOptions();
0 commit comments