helpwave / services

helpwave's microservices
https://staging.api.helpwave.de/
Mozilla Public License 2.0
14 stars 1 forks source link

Recover panic interceptor #867

Closed MaxSchaefer closed 1 month ago

MaxSchaefer commented 1 month ago

Describe the chore

As already in #811 described, we want to panic in some functions during request handling. To prevent our services from restarting, we should handle those panics via recover() in a middleware. We need something similar like https://github.com/grpc-ecosystem/go-grpc-middleware/blob/main/interceptors/recovery/interceptors.go