Kimblis
Kimblis9mo ago

Sentry integration

Hello. I'm using trpc + fastify approach. I need a proper error loggin so I added fastify sentry, which works fine and logs the errors, however i'm missing some context- trpc data sent for the query/mutation, user information and etc. I would like to add that. Anyone had to deal with this before? So far can't find a decent solution for this, especially for retrieving the input.
2 Replies
SebasPtsch
SebasPtsch9mo ago
You could make your own server side error reporter
Kimblis
KimblisOP9mo ago
Yeah, but the question is how to properly take the input, especially if its a query, is there any convenient ways or should I parse it from the url? Just overall practices are appreciated if someone already implemented this (just cant imagine that nobody did, since error logging is that important) Any help on this one?