sentry

package
v0.0.0-...-93f7656 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSentry

func InitSentry(environment string, cfg *SentryConfig) error

func SentryCaptureException

func SentryCaptureException(ctx context.Context, err error, tags map[string]string)

func SentryMiddleware

func SentryMiddleware(handler http.Handler) http.Handler

func SentryRecover

func SentryRecover(ctx context.Context, err any)

Types

type SentryConfig

type SentryConfig struct {
	Enabled bool   `cfg:"SENTRY_ENABLED" default:"true"`
	DSN     string `cfg:"SENTRY_DSN"`
}

Jump to

Keyboard shortcuts

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