What would you recommend for server and client side logging of actions and responses?
Unanswered
Spotted Redshank posted this in #help-forum
Spotted RedshankOP
I need a good and easy way to implement logging to a central point. Main reason is debugging user issues.
2 Replies
Asian black bear
The most robust and mature way is to enable OpenTelemetry instrumentation and manually sending events within key methods or wiring up using suitable middleware if you use tRPC, next-safe-action or similar libraries.
The resulting traces and logs need to be collected and sent to a suitable service. In the beginning it'd make sense to use a third party service such as Better Stack. For serious long term it's reasonable to evaluate migrating to a self-hosted solution such as Grafana with its tooling.