sentry

package
Version: v0.0.0-...-9c4ca89 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HeaderWhiteList = []string{
	"Referer",
	"User-Agent",
	"X-Original-For",
	"X-Forwarded-For",
	"X-Real-IP",
	"Forwarded",
}

Functions

func MakeMinimalRequest

func MakeMinimalRequest(r *http.Request, trustProxy bool) (req *http.Request)

func NewHub

func NewHub(dsn string) (*sentry.Hub, error)

Types

type LogHook

type LogHook struct {
	// contains filtered or unexported fields
}

func NewLogHookFromContext

func NewLogHookFromContext(ctx context.Context) *LogHook

func NewLogHookFromHub

func NewLogHookFromHub(hub *sentry.Hub) *LogHook

func (*LogHook) Fire

func (h *LogHook) Fire(entry *logrus.Entry) error

func (*LogHook) Levels

func (h *LogHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL