sentryutils

package
v0.18.6 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveHub

func ActiveHub(ctx context.Context) *sentry.Hub

func AddBreadcrumb

func AddBreadcrumb(ctx context.Context, breadcrumb *sentry.Breadcrumb)

func AddBreadcrumbToScope

func AddBreadcrumbToScope(scope *sentry.Scope, breadcrumb *sentry.Breadcrumb)

func AddTextBreadcrumb

func AddTextBreadcrumb(ctx context.Context, message string)

func AddTextBreadcrumbToScope

func AddTextBreadcrumbToScope(scope *sentry.Scope, message string)

func CaptureError

func CaptureError(ctx context.Context, err error, msg string, opts ...func(event *sentry.Event))

func CaptureWarning

func CaptureWarning(ctx context.Context, err error, msg string, opts ...func(event *sentry.Event))

func CloseSentry

func CloseSentry()

func InitializeSentry

func InitializeSentry()

func NewScope

func NewScope(ctx context.Context) (scope *sentry.Scope, done func())

func NewSpan

func NewSpan(ctx context.Context, funcName string) (*sentry.Span, context.Context)

func NewSpanForCallingFunc

func NewSpanForCallingFunc(ctx context.Context) (*sentry.Span, context.Context)

func NewSpanForCurrentFunc

func NewSpanForCurrentFunc(ctx context.Context) (*sentry.Span, context.Context)

func Recover

func Recover(ctx context.Context, r any)

func WithData

func WithData(key string, value any) func(event *sentry.Event)

Types

This section is empty.

Jump to

Keyboard shortcuts

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