Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureErrWithReqAndStackTrace ¶
func CaptureErrWithReqAndStackTrace(err error, r *http.Request, fields ...errortracking.CaptureOption)
CaptureErrWithReqAndStackTrace calls labkit's errortracking function and attaches the request, stack trace and any additional fields
func CaptureErrWithStackTrace ¶ added in v1.59.0
func CaptureErrWithStackTrace(err error, fields ...errortracking.CaptureOption)
CaptureErrWithStackTrace calls labkit's errortracking function and attaches the stack trace and any additional fields
Types ¶
type CaptureOption ¶
type CaptureOption = errortracking.CaptureOption
CaptureOption alias to avoid importing labkit/errortracking in internal packages
func WithField ¶
func WithField(key, value string) CaptureOption
WithField alias to avoid importing labkit/errortracking in internal packages
Click to show internal directories.
Click to hide internal directories.