Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(ec ExceptionCapturer) grpc.UnaryServerInterceptor
UnaryServerInterceptor creates an interceptor which catches the errors from each service method and reports them to Sentry
Types ¶
type ExceptionCapturer ¶
type ExceptionCapturer interface {
CaptureException(err error) *sentry.EventID
}
ExceptionCapturer specifies the implementation of a method to capture the given error
Click to show internal directories.
Click to hide internal directories.