Documentation
¶
Overview ¶
Package sentrygrpc provides interceptor for gRPC server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SentryStreamServerInterceptor ¶
func SentryStreamServerInterceptor( options ...InterceptorOption, ) grpc.StreamServerInterceptor
SentryStreamServerInterceptor is a middleware implementation of a GRPC server interceptor for panics in Stream operations TODO: NEEDS TO BE TESTED
func SentryUnaryServerInterceptor ¶
func SentryUnaryServerInterceptor(options ...InterceptorOption) grpc.UnaryServerInterceptor
SentryUnaryServerInterceptor is a middleware implementation of a GRPC server interceptor for panics in Unary operations
Types ¶
type InterceptorOption ¶
type InterceptorOption func(*option)
InterceptorOption configuration overrider.
func WithRelog ¶
func WithRelog(reLog bool) InterceptorOption
WithReport configures which errors to report on.
func WithRepanic ¶
func WithRepanic(repanic bool) InterceptorOption
WithRepanic configures whether to panic again after recovering from a panic. Use this option if you have other panic handlers.
func WithReportOn ¶
func WithReportOn(repOn ReportOn) InterceptorOption
WithReportOn configures which errors to report on.
Click to show internal directories.
Click to hide internal directories.