Documentation ¶
Overview ¶
`grpc_sentry` provides client and server interceptors to report to Sentry.
Index ¶
- func ContinueFromGrpcMetadata(md metadata.MD) sentry.SpanOption
- func ReportAlways(error) bool
- func ReportOnCodes(cc ...codes.Code) reporter
- func StreamClientInterceptor(opts ...Option) grpc.StreamClientInterceptor
- func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor
- func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContinueFromGrpcMetadata ¶
ContinueFromGrpcMetadata returns a span option that updates the span to continue an existing trace. If it cannot detect an existing trace in the request, the span will be left unchanged.
func ReportAlways ¶
func ReportOnCodes ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor(opts ...Option) grpc.StreamClientInterceptor
func StreamServerInterceptor ¶
func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor
Types ¶
type Option ¶
type Option interface {
Apply(*options)
}
func WithRepanicOption ¶
func WithReportOn ¶
func WithReportOn(r reporter) Option
func WithTimeout ¶
func WithWaitForDelivery ¶
Click to show internal directories.
Click to hide internal directories.