# Spring controller hiden behind DispatcherServlet#do\*

**URL:** <https://discuss.elastic.co/t/spring-controller-hiden-behind-dispatcherservlet-do/345548>\
**Category:** APM\
**Tags:** java\
**Created:** [October 23, 2023, 8:35am UTC](https://discuss.elastic.co/t/spring-controller-hiden-behind-dispatcherservlet-do/345548 "2023-10-23T08:35:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jandry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jandry/32/126754_2.png) [@jandry](https://discuss.elastic.co/u/jandry)\
**Post date:** [October 23, 2023, 8:35am UTC](https://discuss.elastic.co/t/spring-controller-hiden-behind-dispatcherservlet-do/345548/1 "2023-10-23T08:35:45Z")

</div>

**Kibana version** :  
7.16.3

I got exctly the same issue as [Remove spring DispatcherServlet from transactions - #18 by ethranes](https://discuss.elastic.co/t/remove-spring-dispatcherservlet-from-transactions/187147/18)

See screenshot  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/5/9530feda7879ac4771b9bc968a9f83b4f0e7ad4c.png)

I'm using Spring Boot 3.0.x with agent elastic-apm-agent-1.36.0.jar

I tried given solution that seems to be adding following parameter to my agent

`ELASTIC_APM_DISABLE_INSTRUMENTATIONS=servlet-api`

but I still have same behaviour. Any additional recommandation on this ?

---

<div class="post-metadata">

**Author:** ![Jonas\_Kunz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_kunz/32/110740_2.png) [@Jonas\_Kunz](https://discuss.elastic.co/u/Jonas_Kunz)\
**Post date:** [October 23, 2023, 10:37am UTC](https://discuss.elastic.co/t/spring-controller-hiden-behind-dispatcherservlet-do/345548/2 "2023-10-23T10:37:38Z")

</div>

Spring Boot 3 support has been added in APM Agent version 1.38.0, so it is not supported by the version you are using.

Please upgrade to the latest agent version, this should fix your issue.

---

<div class="post-metadata">

**Author:** ![jandry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jandry/32/126754_2.png) [@jandry](https://discuss.elastic.co/u/jandry)\
**Post date:** [October 23, 2023, 12:18pm UTC](https://discuss.elastic.co/t/spring-controller-hiden-behind-dispatcherservlet-do/345548/3 "2023-10-23T12:18:41Z")

</div>

Make sens. I try that thanks

---

<div class="post-metadata">

**Author:** ![jandry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jandry/32/126754_2.png) [@jandry](https://discuss.elastic.co/u/jandry)\
**Post date:** [October 23, 2023, 12:33pm UTC](https://discuss.elastic.co/t/spring-controller-hiden-behind-dispatcherservlet-do/345548/4 "2023-10-23T12:33:57Z")

</div>

Also a good alternative I found in your documentation this morning:

`ELASTIC_APM_USE_PATH_AS_TRANSACTION_NAME=true`

in association with

`ELASTIC_APM_TRANSACTION_NAME_GROUPS=true`

Make the job showing the API endpoints (not the Spring controller)

---

<div class="post-metadata">

**Author:** ![jandry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jandry/32/126754_2.png) [@jandry](https://discuss.elastic.co/u/jandry)\
**Post date:** [November 6, 2023, 3:05pm UTC](https://discuss.elastic.co/t/spring-controller-hiden-behind-dispatcherservlet-do/345548/5 "2023-11-06T15:05:00Z")

</div>

Alternative doesn't group all element correctly

Update to 1.43 solved the issue

---

<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:** [December 4, 2023, 3:05pm UTC](https://discuss.elastic.co/t/spring-controller-hiden-behind-dispatcherservlet-do/345548/6 "2023-12-04T15:05:19Z")

</div>

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