Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HeaderWhiteList = []string{
"Origin",
"Referer",
"User-Agent",
"X-Original-For",
"X-Forwarded-For",
"X-Real-IP",
"Forwarded",
}
View Source
var LogHookLevels = []logrus.Level{ logrus.PanicLevel, logrus.FatalLevel, logrus.ErrorLevel, logrus.WarnLevel, }
Functions ¶
func MakeMinimalRequest ¶
Types ¶
type LogHook ¶
type LogHook struct {
// contains filtered or unexported fields
}
func NewLogHookFromContext ¶
func NewLogHookFromHub ¶
func NewLogHookFromHub(hub *sentry.Hub) *LogHook
Click to show internal directories.
Click to hide internal directories.