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
improve servlet error capture #812
Conversation
@eyalkoren , @felixbarny please check PR |
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.
LGTM. Please add a changelog entry for this 👍
added |
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!
One small comment and a verification that we now get exactly what we aim for.
...o/elastic/apm/agent/spring/webmvc/exception/AbstractExceptionHandlerInstrumentationTest.java
Outdated
Show resolved
Hide resolved
.reporter(reporter) | ||
.build(); | ||
ElasticApmAgent.initInstrumentation(tracer, ByteBuddyAgent.install(), | ||
Arrays.asList(new ServletInstrumentation(tracer), new ExceptionHandlerInstrumentation())); |
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.
If you do:
Arrays.asList(new ServletInstrumentation(tracer), new ExceptionHandlerInstrumentation())); | |
Arrays.asList(new ServletInstrumentation(tracer))); |
instead, does the relevant test fail now?
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.
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.
Yes, it's failing now
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, then it is properly tested 🙂
Thanks!
Checklist
closes #711
Update documentationUpdate supported-technologies.asciidocAdded an API method or config option? Document in which version this will be introduced.