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 Reporter
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 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 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 ¶
Click to show internal directories.
Click to hide internal directories.