Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CtxScope ctxKey = "scope" CtxRequest ctxKey = "request" )
CtxUserID is the context key for the scope
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor interface {
// Any implementation must set the scope to the request context in the middleware
Middleware(http.Handler) http.Handler
StartSpan(context.Context, string) (context.Context, Span)
CaptureMessage(msg string, tags map[string]string)
CaptureException(err error, tags map[string]string)
Recover(ctx context.Context, cause any)
Flush(timeout time.Duration)
}
Click to show internal directories.
Click to hide internal directories.