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. |
||
---|---|---|
.. | ||
jaxrs-1.0/javaagent | ||
jaxrs-2.0 | ||
jaxrs-3.0 | ||
jaxrs-common | ||
README.md |
README.md
Settings for the Jaxrs instrumentation
System property | Type | Default | Description |
---|---|---|---|
otel.instrumentation.jaxrs.experimental-span-attributes |
Boolean | false |
Enable the capture of experimental span attributes. |