sentry

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureException

func CaptureException(ctx context.Context, err error)

CaptureException reports a handled error to Sentry.

func New

func New(opt Options) error

New sets up Sentry using the provided options. If the DSN is empty, initialization is skipped.

func RecoverAndFlush

func RecoverAndFlush(repanic bool)

RecoverAndFlush captures a panic (if any) and flushes buffered events. If repanic is true, the panic is rethrown after flush to preserve crash semantics.

func Shutdown

func Shutdown(ctx context.Context, timeout time.Duration)

Shutdown flushes buffered events with the provided timeout or context deadline.

Types

type Options

type Options struct {
	Dsn         string
	Environment string
	Tags        map[string]string
}

Jump to

Keyboard shortcuts

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