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> {
1919 getRawInput ?: ( ) => Promise < unknown > ;
2020}
2121
22- const trpcCaptureContext = { mechanism : { handled : false , data : { function : 'trpcMiddleware' } } } ;
22+ const trpcCaptureContext = { mechanism : { handled : false , type : 'auto.rpc.trpc.middleware' } } ;
2323
2424function captureIfError ( nextResult : unknown ) : void {
2525 // 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', () => {
7878 } ) ;
7979
8080 expect ( exports . captureException ) . toHaveBeenCalledWith ( error , {
81- mechanism : { handled : false , data : { function : 'trpcMiddleware' } } ,
81+ mechanism : { handled : false , type : 'auto.rpc.trpc.middleware' } ,
8282 } ) ;
8383 } ) ;
8484
@@ -115,7 +115,7 @@ describe('trpcMiddleware', () => {
115115 ) . rejects . toThrow ( error ) ;
116116
117117 expect ( exports . captureException ) . toHaveBeenCalledWith ( error , {
118- mechanism : { handled : false , data : { function : 'trpcMiddleware' } } ,
118+ mechanism : { handled : false , type : 'auto.rpc.trpc.middleware' } ,
119119 } ) ;
120120 } ) ;
121121
You can’t perform that action at this time.
0 commit comments