sentry

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flush

func Flush(t time.Duration)

func InitSentry

func InitSentry(config *ConfigOptions) error

This is not a usual init as the user may need to change options before hand

Example
if err := InitSentry(&ConfigOptions{
	Dsn:              "",
	Debug:            true,
	AttachStacktrace: true,
}); err != nil {
	return
}
defer Flush(5 * time.Second)
// Logger = []LoggerInterface{&test.Logger{}, &sentry.Logger{}}
Output:

func NewConfig

func NewConfig() *sentry.ClientOptions

Types

type ConfigOptions

type ConfigOptions sentry.ClientOptions

Passthrough type for https://pkg.go.dev/github.com/getsentry/sentry-go#ClientOptions

type Logger

type Logger struct {
	IgnoreLevelBelow uint32
}

func (Logger) Log

func (t Logger) Log(i interface{}, data interface{}, level uint32, verbose bool)

Jump to

Keyboard shortcuts

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