Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownstreamError ¶ added in v0.181.0
DownstreamError will apply the source as downstream
func Middleware ¶
func Middleware(plugin string) httpclient.Middleware
Middleware captures error source metric
func PluginError ¶ added in v0.181.0
PluginError will apply the source as plugin
func SourceError ¶ added in v0.181.0
func SourceError(source backend.ErrorSource, err error, override bool) error
SourceError returns an error with the source If source is already defined, it will return it, or you can override
Types ¶
type Error ¶
type Error struct { Source backend.ErrorSource Err error }
Error captures error source and implements the error interface
Click to show internal directories.
Click to hide internal directories.