File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export interface SentryTrpcMiddlewareArguments<T> {
19
19
getRawInput ?: ( ) => Promise < unknown > ;
20
20
}
21
21
22
- const trpcCaptureContext = { mechanism : { handled : false , data : { function : 'trpcMiddleware' } } } ;
22
+ const trpcCaptureContext = { mechanism : { handled : false , type : 'auto.rpc.trpc.middleware' } } ;
23
23
24
24
function captureIfError ( nextResult : unknown ) : void {
25
25
// TODO: Set span status based on what TRPCError was encountered
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ describe('trpcMiddleware', () => {
78
78
} ) ;
79
79
80
80
expect ( exports . captureException ) . toHaveBeenCalledWith ( error , {
81
- mechanism : { handled : false , data : { function : 'trpcMiddleware' } } ,
81
+ mechanism : { handled : false , type : 'auto.rpc.trpc.middleware' } ,
82
82
} ) ;
83
83
} ) ;
84
84
@@ -115,7 +115,7 @@ describe('trpcMiddleware', () => {
115
115
) . rejects . toThrow ( error ) ;
116
116
117
117
expect ( exports . captureException ) . toHaveBeenCalledWith ( error , {
118
- mechanism : { handled : false , data : { function : 'trpcMiddleware' } } ,
118
+ mechanism : { handled : false , type : 'auto.rpc.trpc.middleware' } ,
119
119
} ) ;
120
120
} ) ;
121
121
You can’t perform that action at this time.
0 commit comments