Skip to content

Capture responses and add them to spans

Latest
Compare
Choose a tag to compare
@vincentfree vincentfree released this 19 Aug 21:14
· 39 commits to main since this release
e5a83a3

Add http.ResponseWriter wrapper that extracts the responses status code and adds it to the span generated by the middleware.

Based on the status code, the span's status can be flagged as error if the response is a technical error. This was not the case before, then the middleware was unable to set a span as inError.

What's Changed

Full Changelog: otelmiddleware/v0.0.11...otelmiddleware/v0.1.0