amzn / smoke-framework

A light-weight server-side service framework written in the Swift programming language.
Apache License 2.0
1.45k stars 41 forks source link

Report thrown error to span #127

Closed tachyonics closed 1 year ago

tachyonics commented 1 year ago

Issue #, if available:

Description of changes: Records the root cause of an operation's failure to the distributed trace span, including if it is an internal server failure (5xx) and the error is not specified in the response body itself. This will allow the percise cause of failures to be identified directly from the trace rather than having to consult the corresponding logs.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.