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

Add HttpServerResponseCustomizer support for Servlet and Jetty #8095

Merged

Conversation

agoallikmaa
Copy link
Contributor

Add HttpServerResponseCustomizer support for Servlet 2.2/3.0/5.0 and Jetty 8/11 instrumentations. Enabled testing for it in JaxRs tests as well since those should now all be covered due to servlet instrumentations. Fixed Jetty 11 test source set directory name.

Known limitation - response headers do not work on Jetty 8 for internal exception pages caused by throwing an exception that is handled outside of instrumentation scope, working around this would require an additional instrumentation and/or keeping an expired Context instance referenced by the response object. This does not appear to be an issue on Jetty 11. Additionally, calling ServletResponse#reset can wipe headers as well, for which there is no workaround (yet?) in this PR.

@agoallikmaa agoallikmaa requested a review from a team March 21, 2023 03:33
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.

2 participants