reporter

package
v0.0.0-...-e4f7161 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrReporterInitFailed = errors.New("reporter initialization failed")

Functions

func Init

func Init(conf *Config) error

Init should be called when the app starts, from a config object.

func Shutdown

func Shutdown()

Types

type Config

type Config struct {
	DSN         string `json:"dsn"`
	Debug       bool   `json:"debug"`
	Disabled    bool   `json:"disabled"`
	Environment string `json:"-"`
	Release     string `json:"-"`
	// contains filtered or unexported fields
}

type Event

type Event = sentry.Event

type EventID

type EventID = sentry.EventID

func CaptureEvent

func CaptureEvent(e *Event) *EventID

func CaptureException

func CaptureException(err error) *EventID

func CaptureMessage

func CaptureMessage(msg string) *EventID

Jump to

Keyboard shortcuts

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