You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Add logging for errors returned 'fmt.Errorf()' errors as well as the errors
passed to or created by 'TraceLogger.Fatal()'/'TraceLogger.Fatalf()'.
Replace all use of 'fmt.Errorf()' or direct error returns with
'TraceLogger.Errorf()' or 'TraceLogger.Error()', which return 'error'
instances to stay consistent with what they're replacing.
These errors are logged under the "error" trace2 event. We want to capture
the error as low in the call stack as possible (to more precisely indicate
the cause), but also not log a new "error" event for every 'fmt.Errorf()'
replaced. To do that, have the error wrappers return a custom type
'loggedError', and only log the error event if the 'err' or none of the
'Errorf()' arguments are of the 'loggedError' type.
Signed-off-by: Victoria Dye <[email protected]>
0 commit comments