- Notifications
You must be signed in to change notification settings - Fork 327
Instrument View#render instead of DispatcherServlet#render #829
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
Instrument View#render instead of DispatcherServlet#render #829
Conversation
| Hi @felixbarny , |
Codecov Report
@@ Coverage Diff @@ ## master #829 +/- ## ============================================ - Coverage 64.3% 64.13% -0.17% Complexity 84 84 ============================================ Files 232 231 -1 Lines 9592 9353 -239 Branches 1275 1215 -60 ============================================ - Hits 6168 5999 -169 + Misses 3047 2973 -74 - Partials 377 381 +4
Continue to review full report at Codecov.
|
felixbarny left a comment
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.
Awesome job! Sorry for the slow review.
...ebmvc-plugin/src/main/java/co/elastic/apm/agent/spring/webmvc/ViewRenderInstrumentation.java Outdated Show resolved Hide resolved
...ebmvc-plugin/src/main/java/co/elastic/apm/agent/spring/webmvc/ViewRenderInstrumentation.java Outdated Show resolved Hide resolved
...ebmvc-plugin/src/main/java/co/elastic/apm/agent/spring/webmvc/ViewRenderInstrumentation.java Outdated Show resolved Hide resolved
...ebmvc-plugin/src/main/java/co/elastic/apm/agent/spring/webmvc/ViewRenderInstrumentation.java Show resolved Hide resolved
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.
Well done, thanks!!
Two small suggestions.
Also, please merge and resolve conflicts so that we can run the tests.
...ebmvc-plugin/src/main/java/co/elastic/apm/agent/spring/webmvc/ViewRenderInstrumentation.java Outdated Show resolved Hide resolved
...ebmvc-plugin/src/main/java/co/elastic/apm/agent/spring/webmvc/ViewRenderInstrumentation.java Show resolved Hide resolved
eyalkoren left a comment
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.
Great, thanks!
A few minor comments.
In addition, since the default of obtainSubtype is not tested, please add a small sanity test for this method only, eg obtainSubtype(MyCustomView) yielding MyCustom.
...ebmvc-plugin/src/main/java/co/elastic/apm/agent/spring/webmvc/ViewRenderInstrumentation.java Outdated Show resolved Hide resolved
...ebmvc-plugin/src/main/java/co/elastic/apm/agent/spring/webmvc/ViewRenderInstrumentation.java Outdated Show resolved Hide resolved
...ebmvc-plugin/src/main/java/co/elastic/apm/agent/spring/webmvc/ViewRenderInstrumentation.java Outdated Show resolved Hide resolved
| I've added the suggestions, hope you don't mind 🙂 |
Thanks :) |
| Thanks for bearing with us even if it sometimes takes some time to get changes in, but we really appreciate it! |


Checklist
closes #811
-- [x] jsp
-- [x] markup templates
-- [x] freemarker
-- [x] groovy templates
-- [x] jackson2json view
-- [x] jade4j template