Documentation
¶
Overview ¶
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0 `grpc_sentry` provides client and server interceptors to report to Sentry.
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
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 ¶ added in v0.2.0
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 ¶ added in v0.1.0
type Option interface {
Apply(*options)
}
func WithCaptureRequestBody ¶ added in v0.4.0
func WithOperationNameOverride ¶ added in v0.4.0
func WithRepanicOption ¶ added in v0.1.0
func WithReportOn ¶ added in v0.1.0
func WithReportOn(r reporter) Option
func WithTimeout ¶ added in v0.1.0
func WithWaitForDelivery ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.