Help us shape the future of Go! Take the 2026 Go Developer Survey

reporter

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package reporter sends errors to Sentry in builds with -tags with_sentry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapLogger

func WrapLogger(logger log.ContextLogger, reporter Reporter) log.ContextLogger

WrapLogger reports what logger logs at error level and above. Lower levels cost nothing extra.

Types

type Reporter

type Reporter interface {
	CaptureError(err error)
	CaptureMessage(message string)
	// Recover reports a panic in progress and panics again, for use with defer.
	Recover()
	// Close sends pending events.
	Close() error
}

func New

func New(options *option.SentryOptions) (Reporter, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL