sentry

package
v0.0.0-...-122f59b Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

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 NewLogHookFromContextOrFallback

func NewLogHookFromContextOrFallback(ctx context.Context, fallbackHub *sentry.Hub) *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
y or Y : Canonical URL