sentry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Module provides fx options for Sentry

func RegisterHooks

func RegisterHooks(lc fx.Lifecycle, svc *Service)

registerHooks registers lifecycle hooks for Sentry

Types

type Service

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

func NewSentryService

func NewSentryService(cfg *config.Configuration, logger *logger.Logger) *Service

NewSentryService creates a new Sentry service

func (*Service) AddBreadcrumb

func (s *Service) AddBreadcrumb(category, message string, data map[string]interface{})

AddBreadcrumb adds a breadcrumb to the current scope

func (*Service) CaptureException

func (s *Service) CaptureException(err error)

CaptureException captures an error in Sentry

func (*Service) Flush

func (s *Service) Flush(timeout uint) bool

Flush waits for queued events to be sent

Jump to

Keyboard shortcuts

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