Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ae27f33

Browse files
committed
ref(core): Add mechanism.type to trpcMiddleware errors
1 parent b4aad49 commit ae27f33

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)

AltStyle によって変換されたページ (->オリジナル) /