x

package
v0.0.0-...-5793ecd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContinueFromGrpcMetadata

func ContinueFromGrpcMetadata(md metadata.MD) sentry.SpanOption

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 LogWithContext

func LogWithContext(ctx context.Context, msg string, args ...interface{})

func ReportAlways

func ReportAlways(error) bool

func ReportOnCodes

func ReportOnCodes(cc ...codes.Code) reporter

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 WithRepanicOption(b bool) Option

func WithReportOn

func WithReportOn(r reporter) Option

func WithTimeout

func WithTimeout(t time.Duration) Option

func WithWaitForDelivery

func WithWaitForDelivery(b bool) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL