sentry

package
v3.26.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: GPL-3.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnhanceSentryEvent

func EnhanceSentryEvent(event *sentry.Event, _ *sentry.EventHint) *sentry.Event

EnhanceSentryEvent swaps type with value and removes panic handlers from the stacktrace.

func Flush

func Flush(maxWaiTime time.Duration)

func GetProtectedHostname added in v3.2.0

func GetProtectedHostname() string

func GetSystemLang added in v3.2.0

func GetSystemLang() string

func GetTimeZone added in v3.2.0

func GetTimeZone() string

func ReportError added in v3.0.15

func ReportError(r reporter.Reporter, msg string, err error)

func SkipDuringUnwind

func SkipDuringUnwind()

SkipDuringUnwind removes caller from the traceback.

Types

type Identifier

type Identifier interface {
	GetUserAgent() string
}

type NullSentryReporter added in v3.21.0

type NullSentryReporter struct{}

func (NullSentryReporter) ReportException added in v3.21.0

func (n NullSentryReporter) ReportException(any) error

func (NullSentryReporter) ReportExceptionWithContext added in v3.21.0

func (n NullSentryReporter) ReportExceptionWithContext(any, reporter.Context) error

func (NullSentryReporter) ReportMessage added in v3.21.0

func (n NullSentryReporter) ReportMessage(string) error

func (NullSentryReporter) ReportMessageWithContext added in v3.21.0

func (n NullSentryReporter) ReportMessageWithContext(string, reporter.Context) error

func (NullSentryReporter) ReportWarningWithContext added in v3.21.1

func (n NullSentryReporter) ReportWarningWithContext(string, reporter.Context) error

type Reporter

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

func NewReporter

func NewReporter(appName string, identifier Identifier) *Reporter

NewReporter creates new sentry reporter with appName and appVersion to report.

func (*Reporter) ReportException

func (r *Reporter) ReportException(i any) error

func (*Reporter) ReportExceptionWithContext

func (r *Reporter) ReportExceptionWithContext(i any, context map[string]any) error

func (*Reporter) ReportMessage

func (r *Reporter) ReportMessage(msg string) error

func (*Reporter) ReportMessageWithContext

func (r *Reporter) ReportMessageWithContext(msg string, context map[string]any) error

func (*Reporter) ReportWarningWithContext added in v3.21.1

func (r *Reporter) ReportWarningWithContext(msg string, context map[string]any) error

Jump to

Keyboard shortcuts

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