Documentation
¶
Index ¶
- func Capture(ctx context.Context, err error, meta Metadata)
- func CapturePanic(ctx context.Context, recovered any, meta Metadata)
- func ErrorLocations(err error) string
- func ErrorStack(err error) string
- func IgnoredError(err error) bool
- func SetDefault(reporter Reporter)
- type Metadata
- type NoopReporter
- type Reporter
- type SentryConfig
- type SentryReporter
- type SentryReporterDI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorLocations ¶
ErrorLocations returns Juju locations without any messages from the chain.
func ErrorStack ¶
func IgnoredError ¶
func SetDefault ¶
func SetDefault(reporter Reporter)
Types ¶
type NoopReporter ¶
type NoopReporter struct{}
func (NoopReporter) CapturePanic ¶
func (NoopReporter) CapturePanic(context.Context, any, Metadata)
type Reporter ¶
type SentryConfig ¶
type SentryReporter ¶
type SentryReporter struct {
// contains filtered or unexported fields
}
func NewSentryReporter ¶
func NewSentryReporter(di SentryReporterDI) (*SentryReporter, error)
func (*SentryReporter) Capture ¶
func (r *SentryReporter) Capture(ctx context.Context, err error, meta Metadata)
func (*SentryReporter) CapturePanic ¶
func (r *SentryReporter) CapturePanic(ctx context.Context, recovered any, meta Metadata)
func (*SentryReporter) ServiceName ¶
func (r *SentryReporter) ServiceName() string
type SentryReporterDI ¶
type SentryReporterDI struct {
Config SentryConfig
}
Click to show internal directories.
Click to hide internal directories.