report

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorReporters []ErrorReporter

ErrorReporters global set during startup (so env vars can be set) of all reporters

Functions

func Error

func Error(err error, scopeData Scope)

Error reports an error to all enabled reporters

func InitErrorReporters

func InitErrorReporters() error

InitErrorReporters loops through the enabled reporters and calls init()

Types

type ErrorReporter

type ErrorReporter interface {
	// contains filtered or unexported methods
}

ErrorReporter interface for integrations or custom plugins for reporting errors

type Scope

type Scope map[string]string

Scope map[string]string of keys and values to be stamped onto reported errors for context

func (Scope) AddScope

func (s Scope) AddScope(additional Scope) Scope

AddScope combines (overwriting existing keys) two scopes

func (Scope) WithContext

func (s Scope) WithContext(value string) Scope

WithContext sets a "context" key on an existing scope to a given value

type Sentry

type Sentry struct {
	Enable  bool
	Options sentry.ClientOptions
}

Jump to

Keyboard shortcuts

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