errlog

package
v0.0.0-...-d9c1391 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LevelDebug   = Level(sentry.LevelDebug)
	LevelInfo    = Level(sentry.LevelInfo)
	LevelWarning = Level(sentry.LevelWarning)
	LevelError   = Level(sentry.LevelError)
	LevelFatal   = Level(sentry.LevelFatal)
)

Functions

func Fatal

func Fatal(msg interface{})

func FatalErr

func FatalErr(err error)

func FatalErrf

func FatalErrf(err error, msg string, args ...interface{})

func Fatalf

func Fatalf(msg string, args ...interface{})

func Flush

func Flush()

func Init

func Init() error

func IsSkipped

func IsSkipped(err error) bool

func RecoverAndCrash

func RecoverAndCrash()

func ReportError

func ReportError(ctx context.Context, err error, level Level) *sentry.EventID

func ReportErrorAndCrash

func ReportErrorAndCrash(ctx context.Context, err error)

func ReportErrorWithRateLimit

func ReportErrorWithRateLimit(ctx context.Context, err error, level Level, rateLimiter *rate.Limiter) *sentry.EventID

func SetContext

func SetContext(ctx context.Context, sectionTitle string, values map[string]interface{})

func SetTag

func SetTag(ctx context.Context, key, value string)

func Skip

func Skip(err error) error

return an error that will be skipped by errlog reporting

func WrapCtx

func WrapCtx(ctx context.Context) context.Context

Types

type Level

type Level sentry.Level

Jump to

Keyboard shortcuts

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