sentry

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 3 Imported by: 12

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 added in v0.7.0

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 added in v0.7.0

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

func (*Hook) SetPrefix added in v0.6.0

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 added in v0.4.0

type Options sentry.ClientOptions

Jump to

Keyboard shortcuts

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