reporting

package
v0.0.0-...-dc761a9 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddExtrasToContext

func AddExtrasToContext(ctx context.Context, extras map[string]string) context.Context

func AddTagsToContext

func AddTagsToContext(ctx context.Context, tags map[string]string) context.Context

func GetUserIDFromContext

func GetUserIDFromContext(ctx context.Context) string

func InitSentryMiddleware

func InitSentryMiddleware(sentryDSN string) (func(http.HandlerFunc) http.HandlerFunc, func(), error)

func NewSentryMiddlewareOrMock

func NewSentryMiddlewareOrMock(config config.Config) (func(http.HandlerFunc) http.HandlerFunc, func(), error)

func Report

func Report(ctx context.Context, err error, extras ...map[string]string)

func SetStartedAtInContext

func SetStartedAtInContext(ctx context.Context, startedAt time.Time) context.Context

func SetUserIDInContext

func SetUserIDInContext(ctx context.Context, userID string) context.Context

Types

type ReportingMeta

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

func MetaFromContext

func MetaFromContext(ctx context.Context) ReportingMeta

Jump to

Keyboard shortcuts

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