# APM dont capture exception from @ExceptionHandler

**URL:** <https://discuss.elastic.co/t/apm-dont-capture-exception-from-exceptionhandler/187530>\
**Category:** APM\
**Tags:** java\
**Created:** [June 26, 2019, 9:34am UTC](https://discuss.elastic.co/t/apm-dont-capture-exception-from-exceptionhandler/187530 "2019-06-26T09:34:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tapokshot](https://avatars.discourse-cdn.com/v4/letter/t/839c29/32.png) [@tapokshot](https://discuss.elastic.co/u/tapokshot)\
**Post date:** [June 26, 2019, 9:34am UTC](https://discuss.elastic.co/t/apm-dont-capture-exception-from-exceptionhandler/187530/1 "2019-06-26T09:34:02Z")

</div>

Hello

Kibana 6.8.0  
APM Agent Java 1.7.0  
Spring boot 1.5.7.RELEASE

apm agent don't capture exception from spring boot @ExceptionHandler.

His have this feature or i should use manually capture exception via ElasticApm.currentSpan().captureException(ex) ?

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [June 26, 2019, 9:54am UTC](https://discuss.elastic.co/t/apm-dont-capture-exception-from-exceptionhandler/187530/2 "2019-06-26T09:54:48Z")

</div>

Welcome to the forum and thanks for the question 🙂  
We currently don't support that, so using the `captureException` API is indeed a good choice!  
Good luck,  
Eyal.

---

<div class="post-metadata">

**Author:** ![tapokshot](https://avatars.discourse-cdn.com/v4/letter/t/839c29/32.png) [@tapokshot](https://discuss.elastic.co/u/tapokshot)\
**Post date:** [June 26, 2019, 10:24am UTC](https://discuss.elastic.co/t/apm-dont-capture-exception-from-exceptionhandler/187530/3 "2019-06-26T10:24:39Z")

</div>

thank you for answer =)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 17, 2019, 6:24am UTC](https://discuss.elastic.co/t/apm-dont-capture-exception-from-exceptionhandler/187530/4 "2019-07-17T06:24:46Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
