Documentation ¶
Index ¶
- func BreadcrumbToSentry(breadcrumb *errmontypes.Breadcrumb) *sentry.Breadcrumb
- func EventToSentry(ev *errmontypes.Event) *sentry.Event
- func FuncNameToSentryModule(funcName string) string
- func GoroutinesToSentry(goroutines []errmontypes.Goroutine, currentGoroutineID int) []sentry.Thread
- func HTTPRequestToSentry(request *errmon.HTTPRequest) *sentry.Request
- func LevelToSentry(level loggertypes.Level) sentry.Level
- func New(sentryClient *sentry.Client, opts ...Option) errmon.ErrorMonitor
- func PackageToSentry(pkg *errmontypes.Package) sentry.SdkPackage
- func SpansToSentry(spans tracer.Spans) []*sentry.Span
- func StackTraceToSentry(stackTrace runtime.StackTrace) *sentry.Stacktrace
- func UserToSentry(user *errmontypes.User) sentry.User
- type Emitter
- type Option
- type OptionCallerFrameFilter
- type UserEmail
- type UserIPAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BreadcrumbToSentry ¶
func BreadcrumbToSentry(breadcrumb *errmontypes.Breadcrumb) *sentry.Breadcrumb
BreadcrumbToSentry converts a Breadcrumb to the Sentry format.
func EventToSentry ¶
func EventToSentry(ev *errmontypes.Event) *sentry.Event
EventToSentry converts an Event to the Sentry format.
func FuncNameToSentryModule ¶
FuncNameToSentryModule converts a funcation name (see runtime.Frame) to a sentry module name.
func GoroutinesToSentry ¶
func GoroutinesToSentry(goroutines []errmontypes.Goroutine, currentGoroutineID int) []sentry.Thread
GoroutinesToSentry converts goroutines to the Sentry format.
func HTTPRequestToSentry ¶
func HTTPRequestToSentry(request *errmon.HTTPRequest) *sentry.Request
HTTPRequestToSentry converts HTTP request info to the Sentry format.
func LevelToSentry ¶
func LevelToSentry(level loggertypes.Level) sentry.Level
LevelToSentry returns the closest sentry analog of a given logger.Level
func New ¶
func New( sentryClient *sentry.Client, opts ...Option, ) errmon.ErrorMonitor
New wraps a Sentry client and returns a new instance, which implements errmon.ErrorMonitor.
func PackageToSentry ¶
func PackageToSentry(pkg *errmontypes.Package) sentry.SdkPackage
PackageToSentry converts a Package to the Sentry format.
func SpansToSentry ¶
SpansToSentry converts tracer spans to the Sentry format.
func StackTraceToSentry ¶
func StackTraceToSentry(stackTrace runtime.StackTrace) *sentry.Stacktrace
StackTraceToSentry converts a stack trace to the Sentry format.
func UserToSentry ¶
func UserToSentry(user *errmontypes.User) sentry.User
UserToSentry converts an user structure to the Sentry format.
Types ¶
type Emitter ¶
type Emitter struct {
SentryClient *sentry.Client
}
Emitter is a wrapper for a Sentry client to implement errmon.Emitter.
func NewEmitter ¶
func NewEmitter(sentryClient *sentry.Client) *Emitter
NewEmitter returns a new instance of Emitter.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is an abstract option, which defines the behavior of an ErrorMonitor.
type OptionCallerFrameFilter ¶
OptionCallerFrameFilter defines how to find the caller frame. It should return false on each function which cannot be used as a caller frame.
For example, this might be useful to skip frames of a ErrorMonitor implementation.
type UserIPAddress ¶
type UserIPAddress string
UserIPAddress is a field value type used to define an user IP address.