# Transaction name is wrong

**URL:** <https://discuss.elastic.co/t/transaction-name-is-wrong/186013>\
**Category:** APM\
**Tags:** java\
**Created:** [June 17, 2019, 7:44am UTC](https://discuss.elastic.co/t/transaction-name-is-wrong/186013 "2019-06-17T07:44:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![solax](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@solax](https://discuss.elastic.co/u/solax)\
**Post date:** [June 17, 2019, 7:44am UTC](https://discuss.elastic.co/t/transaction-name-is-wrong/186013/1 "2019-06-17T07:44:11Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text 🙂

**Kibana version** :  
7.0.0  
**Elasticsearch version** :  
7.0.0  
**APM Server version** :  
7.0.0  
**APM Agent language and version** :

**Browser version** :

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:  
1.6.1  
**Fresh install or upgraded from other version?**  
no  
**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.  
no  
**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

transaction name is not what i want, it is "GrailsDispatcherServlet#doGet",  
the name is grails framework name, is not my url path  
i use "use\_path\_as\_transaction\_name=true" and "url\_groups=`/v1/todo/list*`" in elasticapm.properties file, but is not work.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/6/b643f8a8f4a99d6a3c63952d2d0b49b93da44cd6.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/5/c5a0c0b80846df2f9d6327696bdf33491fa8da29.png)

how can i deal with it

**Errors in browser console (if relevant)**:

**Provide logs and/or server output (if relevant)**:

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [June 17, 2019, 12:04pm UTC](https://discuss.elastic.co/t/transaction-name-is-wrong/186013/2 "2019-06-17T12:04:56Z")

</div>

Hi and welcome to the forum 👋

Currently, the agent would only use the path as the transaction name if there is no other name set at all. As the agent discovered a Servlet, it names the transaction `GrailsDispatcherServlet#doGet` so that the `use_path_as_transaction_name` takes no effect.

I think we should work with different priorities for transaction names. For example, if the name has been set explicitly, it should not be overridden. But if the discovered name is rather unspecific, like the Servlet name, it should be overridden by the `use_path_as_transaction_name` option.

I have created this issue for that: [https://github.com/elastic/apm-agent-java/issues/673](https://github.com/elastic/apm-agent-java/issues/673)

---

<div class="post-metadata">

**Author:** ![solax](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@solax](https://discuss.elastic.co/u/solax)\
**Post date:** [June 18, 2019, 1:42am UTC](https://discuss.elastic.co/t/transaction-name-is-wrong/186013/3 "2019-06-18T01:42:48Z")

</div>

Thank you very much.  
when Solve the issue I will use it

---

<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 8, 2019, 9:42pm UTC](https://discuss.elastic.co/t/transaction-name-is-wrong/186013/4 "2019-07-08T21:42:49Z")

</div>

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