Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not ignore the error as it might be useful for upstream middlewares. #2209 #3656

Merged
merged 11 commits into from
Apr 26, 2023

Conversation

pendolf
Copy link
Contributor

@pendolf pendolf commented Mar 27, 2023

The error received by otelecho middleware is then passed back to upstream middleware instead of being swallowed.
Added more test cases.
Closes: #2209

@pendolf pendolf requested a review from a team as a code owner March 27, 2023 10:40
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 27, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@codecov
Copy link

codecov bot commented Mar 27, 2023

Codecov Report

Merging #3656 (88215e6) into main (68de2ee) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #3656   +/-   ##
=====================================
  Coverage   70.1%   70.1%           
=====================================
  Files        147     147           
  Lines       6974    6974           
=====================================
+ Hits        4889    4895    +6     
+ Misses      1961    1957    -4     
+ Partials     124     122    -2     
Impacted Files Coverage Δ
...entation/github.com/labstack/echo/otelecho/echo.go 100.0% <100.0%> (+4.8%) ⬆️

... and 1 file with indirect coverage changes

@pellared
Copy link
Member

@open-telemetry/go-maintainers I think this is good to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OtelEcho swallows the error and does not pass it to other middlewares
5 participants