sentry

package
v0.0.0-...-9b45353 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2018 License: MIT Imports: 3 Imported by: 0

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) Start

func (er *ErrorReporter) Start()

Start launches the ErrorReporter

func (*ErrorReporter) Stop

func (er *ErrorReporter) Stop()

Jump to

Keyboard shortcuts

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