sentryhandler

package
v16.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarkToSkip

func MarkToSkip(ctx context.Context)

MarkToSkip propagate context with a special tag that signals to sentry handler that the error must not be reported.

func StreamLogHandler

func StreamLogHandler(opts ...Option) grpc.StreamServerInterceptor

StreamLogHandler handles access times and errors for stream RPC's. Its default behaviour can be changed by passing options.

func UnaryLogHandler

func UnaryLogHandler(opts ...Option) grpc.UnaryServerInterceptor

UnaryLogHandler handles access times and errors for unary RPC's. Its default behaviour can be changed by passing Options.

Types

type Option added in v16.5.0

type Option func(cfg *config)

Option is an option that can be passed to UnaryLogHandler or StreamLogHandler in order to modify their default behaviour.

func WithEventReporter added in v16.5.0

func WithEventReporter(reporter func(*sentry.Event) *sentry.EventID) Option

WithEventReporter overrides the function that is used to report events to Sentry. The only intended purpose of this function is to override this function during tests.

Jump to

Keyboard shortcuts

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