monitoring

package
v0.0.0-...-60c8855 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureException

func CaptureException(err error)

Capture an exception

func CaptureExceptionWithTags

func CaptureExceptionWithTags(err error, tags ...interface{})

Capture an exception with tags

func SetMonitoringGlobal

func SetMonitoringGlobal(monitor Monitor)

setup the monitoring global

Types

type Monitor

type Monitor interface {
	CaptureException(err error)
	CaptureExceptionWithTags(err error, tags ...interface{})
}

type NoopMonitor

type NoopMonitor struct{}

func (*NoopMonitor) CaptureException

func (*NoopMonitor) CaptureException(error)

func (*NoopMonitor) CaptureExceptionWithTags

func (*NoopMonitor) CaptureExceptionWithTags(err error, tags ...interface{})

type SentryMonitor

type SentryMonitor struct {
	// contains filtered or unexported fields
}

func NewSentryMonitor

func NewSentryMonitor(ravenDSN string) (*SentryMonitor, error)

func (*SentryMonitor) CaptureException

func (sm *SentryMonitor) CaptureException(err error)

func (*SentryMonitor) CaptureExceptionWithTags

func (sm *SentryMonitor) CaptureExceptionWithTags(err error, tags ...interface{})

Jump to

Keyboard shortcuts

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