-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Access to request, as well as response headers when response status != 2XX #396
Comments
This topic has come up a few times, and usually ends when I ask someone to review the history first :) Have a look through #290? If you can take the conversation forward with that in mind.. all ears! |
Thanks Adrian, #290 sounds reasonable as far as I understand it. But what about changing the signature of |
basically you've got it. even if we said the async problem isn't one we'd
want to address, we'd have to break api one way or another (ie source to
java 8 is an incompatible move). Bumping the major version is the only way
I can see out of this.
|
Thanks, yeah I guess when the times comes for a major version upgrade, either of these would be nice :) |
fwiw, spring cloud won't move to java 8 until spring 5 and boot 2 |
is this still a limitation of feign? |
@davejwilson yes |
see #744 for an update on this. The |
Closed via #744 |
Hi there,
I would like to be able to log the full request, including headers, in addition to response, when a response returns something other than 2XX, to be able to fully debug what is going on.
I can turn on logging, but as far as I can tell in
feign.SynchronousMethodHandler
, it's not possible to get it to only log in the case of failed requests. Logging all requests will mean a lot of noise.Another option would be if the errorDecoder method
feign.codec.ErrorDecoder.decode
got the request passed in as well, so this could be used in a custom ErrorDecoder. A potential difficulty here would be to make this backwards compatible.Are you open for a pull request addressing this in either way above, or maybe there is some way to achieve this that I've overlooked?
Cheers,
Christian
The text was updated successfully, but these errors were encountered: