You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And it should work, but it looks like a hack, and seconds we need to add all error classes, such as error? compares strings, it's impossible in large applications.
So, is there any workaround how to catch all application errors and send them to sentry using gruf-sentry?
The text was updated successfully, but these errors were encountered:
For example, if I will receive error in my controller
gruf-sentry
does not send that error to sentry. I believe that because here https://github.com/bigcommerce/gruf-sentry/blob/main/lib/gruf/sentry/server_interceptor.rb#L35e
isRuntimeError
and not isGRPC::Internal
class, since interceptors are called before construct GRPC::Internal error here https://github.com/bigcommerce/gruf/blob/main/lib/gruf/controllers/base.rb#L93-L95and
as error not configured.
We can add all our errors to
grpc_error_classes
, as example:And it should work, but it looks like a hack, and seconds we need to add all error classes, such as
error?
compares strings, it's impossible in large applications.So, is there any workaround how to catch all application errors and send them to sentry using
gruf-sentry
?The text was updated successfully, but these errors were encountered: