sentry

package
v0.0.0-...-341c48f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCrash

func NewCrash(options sentry.ClientOptions) crash.Crash

NewCrash returns a Crash with a singleton sentry Hub. All calls on that Crash will be preformed on that Hub.

Types

type Crash

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

func (*Crash) AddBreadcrumb

func (c *Crash) AddBreadcrumb(breadcrumb crash.Breadcrumb)

AddBreadcrumb records a new breadcrumb.

func (*Crash) Flush

func (c *Crash) Flush(timeout time.Duration) bool

Flush waits until the underlying Transport sends any buffered events to the Sentry server, blocking for at most the given timeout. It returns false if the timeout was reached. In that case, some events may not have been sent. Flush should be called before terminating the program to avoid unintentionally dropping events. Do not call Flush indiscriminately after every call to Capture.

func (*Crash) Recover

func (c *Crash) Recover(err interface{}) crash.EventID

Recover calls Sentry's Recover function. Returns EventID if successfully, or empty Event ID if Sentry returns nil.

Directories

Path Synopsis
Package mock_sentry is a generated GoMock package.
Package mock_sentry is a generated GoMock package.

Jump to

Keyboard shortcuts

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