sentry

package
v0.0.0-...-1d3fc3b Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggingIntegration

type LoggingIntegration struct {
	SupressErrors bool
	Logger        interface {
		Printf(format string, a ...any) (n int, err error)
	}
}

func (LoggingIntegration) Name

func (sli LoggingIntegration) Name() string

func (LoggingIntegration) SetupOnce

func (sli LoggingIntegration) SetupOnce(client *sentry.Client)

type Sentry

type Sentry struct {
	Hub *sentry.Hub
}

func (Sentry) CaptureException

func (s Sentry) CaptureException(err error, tags map[string]string)

func (Sentry) CaptureMessage

func (s Sentry) CaptureMessage(msg string, tags map[string]string)

func (Sentry) Flush

func (s Sentry) Flush(timeout time.Duration)

func (Sentry) Middleware

func (s Sentry) Middleware(next http.Handler) http.Handler

func (Sentry) Recover

func (s Sentry) Recover(ctx context.Context, cause any)

func (Sentry) StartSpan

func (s Sentry) StartSpan(ctx context.Context, name string) (context.Context, monitor.Span)

type SentryScope

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

func (SentryScope) SetTag

func (s SentryScope) SetTag(key, value string)

func (SentryScope) SetUser

func (s SentryScope) SetUser(id, username, email string)

Jump to

Keyboard shortcuts

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