Documentation
¶
Index ¶
- func Module() fx.Option
- func RegisterHooks(lc fx.Lifecycle, svc *Service)
- type Service
- func (s *Service) AddBreadcrumb(category, message string, data map[string]interface{})
- func (s *Service) CaptureException(err error)
- func (s *Service) Flush(timeout uint) bool
- func (s *Service) IsEnabled() bool
- func (s *Service) MonitorEventProcessing(ctx context.Context, eventName string, eventTimestamp time.Time, ...) (*sentry.Span, context.Context)
- func (s *Service) StartClickHouseSpan(ctx context.Context, operation string, params map[string]interface{}) (*sentry.Span, context.Context)
- func (s *Service) StartDBSpan(ctx context.Context, operation string, params map[string]interface{}) (*sentry.Span, context.Context)
- func (s *Service) StartKafkaConsumerSpan(ctx context.Context, topic string) (*sentry.Span, context.Context)
- func (s *Service) StartRepositorySpan(ctx context.Context, repository, operation string, ...) (*sentry.Span, context.Context)
- func (s *Service) StartTransaction(ctx context.Context, name string, options ...sentry.SpanOption) (*sentry.Span, context.Context)
- type SpanFinisher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHooks ¶
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 ¶
AddBreadcrumb adds a breadcrumb to the current scope
func (*Service) CaptureException ¶
CaptureException captures an error in Sentry
func (*Service) MonitorEventProcessing ¶ added in v1.0.17
func (s *Service) MonitorEventProcessing(ctx context.Context, eventName string, eventTimestamp time.Time, metadata map[string]interface{}) (*sentry.Span, context.Context)
MonitorEventProcessing tracks event processing in Sentry
func (*Service) StartClickHouseSpan ¶ added in v1.0.17
func (s *Service) StartClickHouseSpan(ctx context.Context, operation string, params map[string]interface{}) (*sentry.Span, context.Context)
StartClickHouseSpan starts a new ClickHouse span in the current transaction
func (*Service) StartDBSpan ¶ added in v1.0.17
func (s *Service) StartDBSpan(ctx context.Context, operation string, params map[string]interface{}) (*sentry.Span, context.Context)
StartDBSpan starts a new database span in the current transaction
func (*Service) StartKafkaConsumerSpan ¶ added in v1.0.17
func (s *Service) StartKafkaConsumerSpan(ctx context.Context, topic string) (*sentry.Span, context.Context)
StartKafkaConsumerSpan starts a new Kafka consumer span in the current transaction
type SpanFinisher ¶ added in v1.0.17
SpanFinisher is a helper that finishes a span when calling Finish()
func (*SpanFinisher) Finish ¶ added in v1.0.17
func (f *SpanFinisher) Finish()
Finish completes the span if it exists
Click to show internal directories.
Click to hide internal directories.