Documentation ¶
Overview ¶
Package sentry implements sentry-related functionality.
Index ¶
- func CaptureException(err error, opts ...CaptureOption)
- func CaptureExceptionWithAppInfo(ctx context.Context, err error, featureName string, appCompact *fly.AppCompact)
- func CaptureMessage(msg string, opts ...CaptureOption)
- func Flush()
- func Recover(v interface{})
- type CaptureOption
- func WithContext(key string, val sentry.Context) CaptureOption
- func WithContexts(contexts map[string]sentry.Context) CaptureOption
- func WithExtra(key string, val interface{}) CaptureOption
- func WithRequestID(requestID string) CaptureOption
- func WithStatusCode(status int) CaptureOption
- func WithTag(key, value string) CaptureOption
- func WithTraceID(ctx context.Context) CaptureOption
- type Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureException ¶ added in v0.0.286
func CaptureException(err error, opts ...CaptureOption)
func CaptureExceptionWithAppInfo ¶ added in v0.0.477
func CaptureMessage ¶ added in v0.0.286
func CaptureMessage(msg string, opts ...CaptureOption)
Types ¶
type CaptureOption ¶ added in v0.0.286
type CaptureOption func(scope *sentry.Scope)
func WithContext ¶ added in v0.0.286
func WithContext(key string, val sentry.Context) CaptureOption
func WithContexts ¶ added in v0.0.286
func WithContexts(contexts map[string]sentry.Context) CaptureOption
func WithExtra ¶ added in v0.0.288
func WithExtra(key string, val interface{}) CaptureOption
func WithRequestID ¶ added in v0.2.77
func WithRequestID(requestID string) CaptureOption
func WithStatusCode ¶ added in v0.2.77
func WithStatusCode(status int) CaptureOption
func WithTag ¶ added in v0.0.286
func WithTag(key, value string) CaptureOption
func WithTraceID ¶ added in v0.1.136
func WithTraceID(ctx context.Context) CaptureOption
Click to show internal directories.
Click to hide internal directories.