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

improve servlet error capture #812

Merged
merged 7 commits into from Sep 2, 2019

Conversation

videnkz
Copy link
Contributor

@videnkz videnkz commented Aug 23, 2019

Checklist

closes #711

@videnkz
Copy link
Contributor Author

videnkz commented Aug 23, 2019

@eyalkoren , @felixbarny please check PR

@videnkz videnkz changed the title improve servlet error cpature improve servlet error capture Aug 23, 2019
Copy link
Member

@felixbarny felixbarny left a 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 👍

@videnkz
Copy link
Contributor Author

videnkz commented Aug 29, 2019

LGTM. Please add a changelog entry for this +1

added

Copy link
Contributor

@eyalkoren eyalkoren left a 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.

.reporter(reporter)
.build();
ElasticApmAgent.initInstrumentation(tracer, ByteBuddyAgent.install(),
Arrays.asList(new ServletInstrumentation(tracer), new ExceptionHandlerInstrumentation()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you do:

Suggested change
Arrays.asList(new ServletInstrumentation(tracer), new ExceptionHandlerInstrumentation()));
Arrays.asList(new ServletInstrumentation(tracer)));

instead, does the relevant test fail now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with instrumentation:
image
without:
image

Copy link
Contributor Author

@videnkz videnkz Sep 2, 2019

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

Copy link
Contributor

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!

@eyalkoren eyalkoren merged commit eac5883 into elastic:master Sep 2, 2019
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.

Capture exception from spring boot @ExceptionHandler
4 participants