Documentation
¶
Index ¶
- func HttpHandler(name string, next http.Handler) http.Handler
- func HttpHandlerWithMetrics(routeName string, next http.Handler, emitter httphandler.MetricEmitter) http.Handler
- func Identify() (runtime.Frame, string)
- func Log(ctx context.Context, name string, recovery interface{})
- func Recovery(ctx context.Context, name string, handlers ...func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpHandler ¶
HttpHandler handler wrapper to recover from panics
func HttpHandlerWithMetrics ¶
func HttpHandlerWithMetrics(routeName string, next http.Handler, emitter httphandler.MetricEmitter) http.Handler
func Identify ¶
Identify returns the frame of the panic and hash of the calls stack which is useful for grouping panics it skips the stack that comes from the runtime package and recovery code run after the panic modeled after https://golang.org/pkg/runtime/#CallersFrames
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.