Documentation
¶
Index ¶
- func AddExtrasToContext(ctx context.Context, extras map[string]string) context.Context
- func AddTagsToContext(ctx context.Context, tags map[string]string) context.Context
- func GetUserIDFromContext(ctx context.Context) string
- func InitSentryMiddleware(sentryDSN string) (func(http.HandlerFunc) http.HandlerFunc, func(), error)
- func NewSentryMiddlewareOrMock(config config.Config) (func(http.HandlerFunc) http.HandlerFunc, func(), error)
- func Report(ctx context.Context, err error, extras ...map[string]string)
- func SetStartedAtInContext(ctx context.Context, startedAt time.Time) context.Context
- func SetUserIDInContext(ctx context.Context, userID string) context.Context
- type ReportingMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddExtrasToContext ¶
func AddTagsToContext ¶
func GetUserIDFromContext ¶
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 SetStartedAtInContext ¶
Types ¶
type ReportingMeta ¶
type ReportingMeta struct {
// contains filtered or unexported fields
}
func MetaFromContext ¶
func MetaFromContext(ctx context.Context) ReportingMeta
Click to show internal directories.
Click to hide internal directories.