Skip to content

Conversation

SylvainJuge
Copy link
Member

What does this PR do?

The current instrumentation of spring resttemplate breaks when an IOException is thrown while trying to access the HTTP response status code.

This PR implements a "safer" way to access it and also makes it future-proof as the a deprecated method to access status code will be removed in next major release (7.x).

Checklist

@SylvainJuge SylvainJuge self-assigned this Oct 6, 2025
Copy link

github-actions bot commented Oct 6, 2025

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@SylvainJuge SylvainJuge marked this pull request as ready for review October 8, 2025 12:02
@SylvainJuge SylvainJuge requested a review from a team as a code owner October 8, 2025 12:02
@SylvainJuge SylvainJuge enabled auto-merge (squash) October 8, 2025 13:00
@SylvainJuge SylvainJuge merged commit 9153766 into elastic:main Oct 8, 2025
16 of 17 checks passed
@SylvainJuge SylvainJuge deleted the handle-exception-resttemplate-status branch October 8, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants