# Questions about transaction

**URL:** <https://discuss.elastic.co/t/questions-about-transaction/213069>\
**Category:** APM\
**Tags:** java\
**Created:** [December 26, 2019, 11:07am UTC](https://discuss.elastic.co/t/questions-about-transaction/213069 "2019-12-26T11:07:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![HadarPeeran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hadarpeeran/32/46926_2.png) [@HadarPeeran](https://discuss.elastic.co/u/HadarPeeran)\
**Post date:** [December 26, 2019, 11:07am UTC](https://discuss.elastic.co/t/questions-about-transaction/213069/1 "2019-12-26T11:07:14Z")

</div>

**Kibana version** : 7.5

**Elasticsearch version** : 7.5

**APM Server version** : 7.5

**APM Agent language and version** : Java 1.x, Jboss 7.2

**standalone.bat.conf:**

> set JAVA\_OPTS=%JAVA\_OPTS% -javaagent:C:/APM-Agent/elastic-apm-agent-1.12.0.jar  
> set JAVA\_OPTS=%JAVA\_OPTS% -Delastic.apm.service\_name=idit-manual-agent-standalone  
> set JAVA\_OPTS=%JAVA\_OPTS% -Delastic.apm.application\_packages=com.idit  
> set JAVA\_OPTS=%JAVA\_OPTS% -Delastic.apm.server\_urls=[http://xxxxx.com:8200](http://xxxxx.com:8200)

**Browser version** : chrome

**I have questions regarding transactions** :

1. 'View Full Trace' button is disabled, although I configured `application_packages=com.idit`,  
`com.idit` is our root package  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/f/0fb8cece022b0da0e54a57d48fe8f4b8575285bf.png)
2. Is there option to group transactions by one of url parameters? please see `url.full`, is it possible to display the transaction grouped by `subActionName` for example?  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/f/af74080e8c7f4dd8715a83f5a0e50ac572f76870.png)

thanks!

---

<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:** [December 29, 2019, 7:25am UTC](https://discuss.elastic.co/t/questions-about-transaction/213069/2 "2019-12-29T07:25:07Z")

</div>

> [@HadarPeeran](#):
>
> 'View Full Trace' button is disabled, although I configured `application_packages=com.idit` ,  
> `com.idit` is our root package

This button is only relevant for [distributed traces](https://www.elastic.co/guide/en/kibana/current/traces.html#distributed-tracing), which are only relevant if you trace multiple services, and only when you drill down to a specific trace. You can see more details in [our span timeline documentation](https://www.elastic.co/guide/en/kibana/current/spans.html).

> [@HadarPeeran](#):
>
> Is there option to group transactions by one of url parameters? please see `url.full` , is it possible to display the transaction grouped by `subActionName` for example?

Since this is part of the query string, I believe the best approach would be to override the transaction name assigned by the agent. You can do that in as `ServletFilter` you add, or within your sevlet code, or anywhere else during the transaction handling. Learn how to [add our API jar](https://www.elastic.co/guide/en/apm/agent/java/current/public-api.html#public-api) as a dependency, then all you need to do is [get the current transaction](https://www.elastic.co/guide/en/apm/agent/java/current/public-api.html#api-current-transaction) and [set its name](https://www.elastic.co/guide/en/apm/agent/java/current/public-api.html#api-set-name).

---

<div class="post-metadata">

**Author:** ![HadarPeeran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hadarpeeran/32/46926_2.png) [@HadarPeeran](https://discuss.elastic.co/u/HadarPeeran)\
**Post date:** [December 29, 2019, 8:22am UTC](https://discuss.elastic.co/t/questions-about-transaction/213069/3 "2019-12-29T08:22:30Z")

</div>

@Eyal_Koren thanks!  
so for monolithic application, how I can see the stack trace? according to [config-application-packages](https://www.elastic.co/guide/en/apm/agent/java/current/config-stacktrace.html#config-application-packages) I should see our code from Kibana ...

---

<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:** [December 29, 2019, 8:45am UTC](https://discuss.elastic.co/t/questions-about-transaction/213069/4 "2019-12-29T08:45:09Z")

</div>

Stack trace is part of the details of a span. Please see the same span timeline documentation above.  
I suggest you go over this entire documentation, as well as [the Java agent documentation](https://www.elastic.co/guide/en/apm/agent/java/current/index.html) to get a better idea of terminology, what we support and all the existing configuration options.

---

<div class="post-metadata">

**Author:** ![HadarPeeran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hadarpeeran/32/46926_2.png) [@HadarPeeran](https://discuss.elastic.co/u/HadarPeeran)\
**Post date:** [December 31, 2019, 9:12pm UTC](https://discuss.elastic.co/t/questions-about-transaction/213069/5 "2019-12-31T21:12:14Z")

</div>

@Eyal_Koren thanks, now stack trace is displayed.

Can you please explain a bit more on the set `transaction name`?  
I see that there is an option to override the name of the current transaction by calling `ElasticApm.currentTransaction().setName()`, but from which method I should do this setting? as I understand I should override/implement a specific method is called by APM-Agent and set name there, which method it is?

Currently, all our online actions are displayed under below transaction so it's meaningless,  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/e/aea782a959850bef805d645eabf900e9032ef52d.png)

as I wrote I look for an option to set the `Transaction name` by attributes from `Transaction Metadata` so that each transaction will be displayed separately

---

<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:** [January 1, 2020, 6:17am UTC](https://discuss.elastic.co/t/questions-about-transaction/213069/6 "2020-01-01T06:17:01Z")

</div>

You can call `ElasticApm.currentTransaction()` from any method on the thread that handles the request. You can do that from within your JSP code, or any method called as a result of the JSP execution.

---

<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:** [January 22, 2020, 2:17am UTC](https://discuss.elastic.co/t/questions-about-transaction/213069/7 "2020-01-22T02:17:06Z")

</div>

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