-
Notifications
You must be signed in to change notification settings - Fork 15
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 servlet 2.2 instrumentation #376
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaushal02 there are some TODOs and FIXMEs pending
...ent/instrumentation/hypertrace/servlet/v2_2/nowrapping/Servlet2AndFilterInstrumentation.java
Outdated
Show resolved
Hide resolved
...ent/instrumentation/hypertrace/servlet/v2_2/nowrapping/Servlet2AndFilterInstrumentation.java
Outdated
Show resolved
Hide resolved
...nstrumentation/hypertrace/servlet/v2_2/nowrapping/request/ServletRequestInstrumentation.java
Outdated
Show resolved
Hide resolved
.and(isPublic()), | ||
ServletOutputStreamInstrumentation.class.getName() + "$OutputStream_writeByteArrOffset"); | ||
|
||
// close() is not instrumented due to some issue with Tomcat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we instrument this method in 2.0? We should check this method in servlet-2.0 code
...nstrumentation/hypertrace/servlet/v3_0/nowrapping/request/ServletRequestInstrumentation.java
Outdated
Show resolved
Hide resolved
...pentelemetry/javaagent/instrumentation/hypertrace/servlet/v3_0/nowrapping/request/Utils.java
Outdated
Show resolved
Hide resolved
@kaushal02 we should add tests as well |
...pentelemetry/javaagent/instrumentation/hypertrace/servlet/v3_0/nowrapping/request/Utils.java
Outdated
Show resolved
Hide resolved
@@ -179,7 +178,6 @@ public static void exit( | |||
VirtualField.find(HttpServletRequest.class, StringMapSpanPair.class); | |||
|
|||
// capture response body | |||
// TODO: capture response headers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we able to capture response headers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are capturing content-type
header but other response headers are not getting captured, at least in case of Boomi
Description
Adding instrumentation for old servlet versions (2.2-3.0). This is used in boomi. The implementation is almost similar to servlet-3.0.
Testing
Tested with rest API in boomi which uses servlet-2.5 and able to instrument everything there except response headers.
Checklist:
Documentation
Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.