sentry

package
v0.0.2-0...-dd1b7fa Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureAndWait

func CaptureAndWait(skipFrames uint, message string, tags map[string]string)

CaptureAndWait reports an error message to sentry along with a stacktrace.

skipFrames can be used to indicate how many stack frames should be skipped to reach the frame where the error actually happened, eg.: - When CaptureAndWait is called directly from the location that should appear in the stack trace, skipFrames should be 0. - When CaptureAndWait is called from a helper function, eg. to both log to stdout and sentry, that helper function frame can be skipped by giving 1.

tags are additional tags to add to the sentry event.

This call is synchronous in that it will not return until the message has been sent to sentry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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