Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorReporter ¶
type ErrorReporter struct {
// contains filtered or unexported fields
}
ErrorReporter implements discollect.ErrorReporter and hydrocarbon.ErrorReporter using Sentry.io
func NewErrorReporter ¶
func NewErrorReporter(c *http.Client, pubKey, privKey string) (*ErrorReporter, error)
NewErrorReporter instantiates a new ErrorReporter
func (*ErrorReporter) Report ¶
func (er *ErrorReporter) Report(ctx context.Context, ro *discollect.ReporterOpts, err error)
Report enqueues an error to be sent to sentry in the future
func (*ErrorReporter) Stop ¶
func (er *ErrorReporter) Stop()
Click to show internal directories.
Click to hide internal directories.