errortracking

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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