sentryext

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(handler http.Handler) http.Handler

func NewStacktrace

func NewStacktrace(skip int) *sentry.Stacktrace

func Setup

func Setup(configs Configs, service, version string) error

Types

type Configs

type Configs struct {
	EnvName   envext.Name `env:"ENV_NAME" envDefault:"LOCAL"`
	SentryDSN string      `env:"SENTRY_DSN,required"`
}

type Hook

type Hook struct {
	LogLevels []log.Level
}

func (*Hook) Fire

func (hook *Hook) Fire(entry *log.Entry) error

func (*Hook) Levels

func (hook *Hook) Levels() []log.Level

Levels define on which log levels this hook would trigger

Jump to

Keyboard shortcuts

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