Documentation ¶ Index ¶ func Middleware(handler http.Handler) http.Handler func NewStacktrace(skip int) *sentry.Stacktrace func Setup(configs Configs, service, version string) error type Configs type Hook func (hook *Hook) Fire(entry *log.Entry) error func (hook *Hook) Levels() []log.Level 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 Source Files ¶ View all Source files configs.go hook.go middleware.go setup.go stacktrace.go Click to show internal directories. Click to hide internal directories.