Documentation ¶
Index ¶
- Variables
- func Configure(opts ...Option)
- func ReportError(ctx context.Context, err error)
- func ReportErrorRequest(r *http.Request, err error)
- func ReportPanics(ctx context.Context)
- func WithAdvancedReporterContext(ctx context.Context) context.Context
- func WithAdvancedReporterRequest(r *http.Request) *http.Request
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultReporter = defaultReporter{}
DefaultReporter merging all the methods in a single struct that can be passed to external interfaces.
Functions ¶
func ReportError ¶
func ReportErrorRequest ¶
func ReportPanics ¶ added in v0.2.1
ReportPanics report any panic that can be recovered if it happens. It should be called with defer before any code that should be protected.
func WithAdvancedReporterContext ¶ added in v0.7.0
Types ¶
Click to show internal directories.
Click to hide internal directories.