File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -344,15 +344,15 @@ export async function trpcMiddleware(options: SentryTrpcMiddlewareOptions = {})
344
344
sentryTransaction . setName ( `trcp/${ path } ` , 'route' ) ;
345
345
sentryTransaction . op = 'rpc.server' ;
346
346
347
- const trpcData : Record < string , unknown > = {
348
- procedureType : type ,
347
+ const trpcContext : Record < string , unknown > = {
348
+ 'Procedure Type' : type ,
349
349
} ;
350
350
351
351
if ( options . attachRpcInput !== undefined ? options . attachRpcInput : clientOptions ?. sendDefaultPii ) {
352
- trpcData . procedureInput = normalize ( rawInput ) ;
352
+ trpcContext [ 'Input' ] = normalize ( rawInput ) ;
353
353
}
354
354
355
- sentryTransaction . setData ( 'trpc' , trpcData ) ;
355
+ sentryTransaction . setContext ( 'trpc' , trpcContext ) ;
356
356
}
357
357
358
358
return next ( ) ;
You can’t perform that action at this time.
0 commit comments