-
Notifications
You must be signed in to change notification settings - Fork 980
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
Improve partial error logging for Elasticsearch meter registry #1418
Improve partial error logging for Elasticsearch meter registry #1418
Conversation
Are you aware of Elasticsearch documentation on this? I would like to understand if they have documented differences of when Elasticsearch will return an unsuccessful status code versus a successful status code with an unsuccessful body. |
@shakuzen I didn't find any doc on it but when I was looking into #1071 I noticed the With regards to the |
Yes that seems to make sense. Otherwise partial failures and complete failures might look the same. |
@shakuzen Thanks for the feedback!
Is it okay to update this PR accordingly? |
Yes, please. |
75a8f07
to
4461892
Compare
4461892
to
41d62d2
Compare
@shakuzen I updated as discussed. |
When the HTTP status is considered as success but its body has
errors
property, there's no logging for request body unlike unsuccessful HTTP statuses. This PR changes to log HTTP request errors in Elasticsearch meter registry consistently.