Documentation ¶
Overview ¶
package hb2 is a Go package for sending errors to Honeybadger using the official client library
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IgnoredHeaders = map[string]struct{}{
"Authorization": struct{}{},
}
Headers that won't be sent to honeybadger.
Functions ¶
This section is empty.
Types ¶
type HbReporter ¶
type HbReporter struct {
// contains filtered or unexported fields
}
func NewReporter ¶
func NewReporter(cfg Config) *HbReporter
NewReporter returns a new Reporter instance.
func (*HbReporter) Flush ¶
func (r *HbReporter) Flush()
func (*HbReporter) GetConfig ¶
func (r *HbReporter) GetConfig() *honeybadger.Configuration
exposes honeybadger config for unit tests
func (*HbReporter) ReportWithLevel ¶
Report reports the error to honeybadger.
Click to show internal directories.
Click to hide internal directories.