tRPCttRPC
Powered by
ferdyF
tRPC•3y ago•
6 replies
ferdy

Get tRPC procedure latency?

Hi all, is there a supported mechanism to run common code to all procedures, say if I want to get latency metrics. I want to run the same latency math on all my procedures. I could create a helper function that I just have to remember to wrap all my procedure code in but just wondering if there's some supported tRPC way of doing this?
Solution
What about middleware
Jump to solution
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

TRPC Dynamic Procedure URL
Rasel HossainRRasel Hossain / ❓-help
2y ago
Finding the Unused TRPC procedure...
0xtz00xtz / ❓-help
11mo ago
Multiple Inputs on TRPC Procedure?
jackhammer8234Jjackhammer8234 / ❓-help
3y ago
Get procedure path programatically?
neoneyNneoney / ❓-help
6mo ago