vincentfree
released this
19 Aug 21:14
·
39 commits
to main
since this release
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
- Bump github.com/vincentfree/opentelemetry/otelslog from 0.0.2 to 0.0.3 by @dependabot in #49
- Add example convert func by @vincentfree in #51
- Bump github.com/rs/zerolog from 1.30.0 to 1.31.0 by @dependabot in #53
- Bump go.opentelemetry.io/otel from 1.16.0 to 1.22.0 by @dependabot in #57
- Bump go.opentelemetry.io/otel from 1.22.0 to 1.24.0 by @dependabot in #61
- Bump go.opentelemetry.io/otel from 1.24.0 to 1.25.0 by @dependabot in #62
- Bump go.opentelemetry.io/otel from 1.25.0 to 1.26.0 by @dependabot in #63
- Bump github.com/rs/zerolog from 1.31.0 to 1.33.0 by @dependabot in #65
- Bump go.opentelemetry.io/otel from 1.26.0 to 1.28.0 by @dependabot in #67
- Change default span kind to 'server' instead of 'client' by @vincentfree in #68
- Feature/add devcontainer by @vincentfree in #69
- Feature/update middleware version by @vincentfree in #70
- Feature/add zerolog otel bridge by @vincentfree in #71
- add a custom ResponseWriter to capture the statuscode of a response in otlpmiddleware by @vincentfree in #74
Full Changelog: otelmiddleware/v0.0.11...otelmiddleware/v0.1.0