Documentation
¶
Index ¶
- func EnhanceSentryEvent(event *sentry.Event, _ *sentry.EventHint) *sentry.Event
- func Flush(maxWaiTime time.Duration)
- func GetProtectedHostname() string
- func GetSystemLang() string
- func GetTimeZone() string
- func ReportError(r reporter.Reporter, msg string, err error)
- func SkipDuringUnwind()
- type Identifier
- type NullSentryReporter
- func (n NullSentryReporter) ReportException(any) error
- func (n NullSentryReporter) ReportExceptionWithContext(any, reporter.Context) error
- func (n NullSentryReporter) ReportMessage(string) error
- func (n NullSentryReporter) ReportMessageWithContext(string, reporter.Context) error
- func (n NullSentryReporter) ReportWarningWithContext(string, reporter.Context) error
- type Reporter
- func (r *Reporter) ReportException(i any) error
- func (r *Reporter) ReportExceptionWithContext(i any, context map[string]any) error
- func (r *Reporter) ReportMessage(msg string) error
- func (r *Reporter) ReportMessageWithContext(msg string, context map[string]any) error
- func (r *Reporter) ReportWarningWithContext(msg string, context map[string]any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnhanceSentryEvent ¶
EnhanceSentryEvent swaps type with value and removes panic handlers from the stacktrace.
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
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 (*Reporter) ReportExceptionWithContext ¶
func (*Reporter) ReportMessage ¶
func (*Reporter) ReportMessageWithContext ¶
Click to show internal directories.
Click to hide internal directories.