Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorField ¶
ErrorField calls NamedErrorField with the key "error"
func NamedErrorField ¶
NamedErrorField returns a zap field that logs as the embedded JSON representation of the error. If it's a gRPC error, it converts it to a Status and returns the unpacked information. Otherwise, it returns the original error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.