opentelemetry-go-contrib
opentelemetry-go-contrib copied to clipboard
fix: do not swallow error in otel echo middleware and return it to other middlewares as expected. #2209
fix: do not swallow error in otel echo middleware and return it to other middlewares as expected.
Middleware was swallowing the error and it was not passing it to previous middlewares as expected. Also, when we return the error from the middleware, HTTP error handler is called automatically.
Co-authored-by: Erkan Zileli[email protected] Signed-off-by: Celal Öner [email protected]
Fixes #2209
The committers listed above are authorized under a signed CLA.
- :white_check_mark: login: hcelaloner / name: Hüseyin Celal Öner (db9e99cd27d07c823878eee400166bc3c69e737d)
Codecov Report
Merging #2210 (caceaab) into main (2c65737) will increase coverage by
5.2%
. The diff coverage isn/a
.
@@ Coverage Diff @@
## main #2210 +/- ##
=======================================
+ Coverage 69.4% 74.6% +5.2%
=======================================
Files 135 7 -128
Lines 6113 316 -5797
=======================================
- Hits 4244 236 -4008
+ Misses 1741 67 -1674
+ Partials 128 13 -115
Closing pull request since the issue is now resolved by https://github.com/open-telemetry/opentelemetry-go-contrib/pull/3656