Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractStacktrace ¶
ExtractStacktrace attempts to extract Stacktrace from errors and include it in Sentry event
Types ¶
type SentryHook ¶
SentryHook stores information that is used by hook for sending data to Sentry
func NewHook ¶
func NewHook(minExceptionLevel logrus.Level, options *sentry.ClientOptions) (*SentryHook, error)
NewHook is triggered at hook creation to define hook and Sentry configuration
func (*SentryHook) Fire ¶
func (hook *SentryHook) Fire(entry *logrus.Entry) error
Fire is called by logrus everytime a log is written
func (*SentryHook) Levels ¶ added in v0.1.2
func (hook *SentryHook) Levels() []logrus.Level
Levels outputs all supported logging levels by this hook
Click to show internal directories.
Click to hide internal directories.