Skip to content

Commit acb82e4

Browse files
committed
ref(core): Add mechanism.type to trpcMiddleware errors
1 parent 8f4d56f commit acb82e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/trpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface SentryTrpcMiddlewareArguments<T> {
1919
getRawInput?: () => Promise<unknown>;
2020
}
2121

22-
const trpcCaptureContext = { mechanism: { handled: false, data: { function: 'trpcMiddleware' } } };
22+
const trpcCaptureContext = { mechanism: { handled: false, type: 'trpc', data: { function: 'trpcMiddleware' } } };
2323

2424
function captureIfError(nextResult: unknown): void {
2525
// TODO: Set span status based on what TRPCError was encountered

0 commit comments

Comments
 (0)