sentry

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

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

func NewHook

func NewHook(options Options, levels ...logrus.Level) (*Hook, error)

func (*Hook) AddTag

func (hook *Hook) AddTag(key, value string)

func (*Hook) Fire

func (hook *Hook) Fire(entry *logrus.Entry) error

func (*Hook) Flush

func (hook *Hook) Flush()

func (*Hook) Levels

func (hook *Hook) Levels() []logrus.Level

func (*Hook) SetEnvironment

func (hook *Hook) SetEnvironment(environment string)

func (*Hook) SetFlushTimeout

func (hook *Hook) SetFlushTimeout(timeout time.Duration)

func (*Hook) SetPrefix

func (hook *Hook) SetPrefix(prefix string)

func (*Hook) SetRelease

func (hook *Hook) SetRelease(release string)

func (*Hook) SetTags

func (hook *Hook) SetTags(tags map[string]string)

type Options

type Options sentry.ClientOptions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL