# Only request in Transaction type Java Agent

**URL:** <https://discuss.elastic.co/t/only-request-in-transaction-type-java-agent/268518>\
**Category:** APM\
**Tags:** java\
**Created:** [March 26, 2021, 4:20pm UTC](https://discuss.elastic.co/t/only-request-in-transaction-type-java-agent/268518 "2021-03-26T16:20:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [March 26, 2021, 4:20pm UTC](https://discuss.elastic.co/t/only-request-in-transaction-type-java-agent/268518/1 "2021-03-26T16:20:11Z")

</div>

Hi, I have installed a Java agent with default setting, and I only get "request" in transaction type dropdown menu, is there a way to get more transaction types from the agent?

---

<div class="post-metadata">

**Author:** ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)\
**Post date:** [March 29, 2021, 7:10am UTC](https://discuss.elastic.co/t/only-request-in-transaction-type-java-agent/268518/2 "2021-03-29T07:10:37Z")

</div>

Hi @ElasticLiver ,

Here `request` is the type that is used for most request-based frameworks, and it's also used for HTTP.

If you want you can use the [public API](https://www.elastic.co/guide/en/apm/agent/java/current/public-api.html#api-transaction-set-type) to override the default value.

---

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [March 30, 2021, 2:46pm UTC](https://discuss.elastic.co/t/only-request-in-transaction-type-java-agent/268518/3 "2021-03-30T14:46:08Z")

</div>

Thanks for your answer @Sylvain_Juge , the transaction types available depends on the [supported technologies](https://www.elastic.co/guide/en/apm/agent/java/current/supported-technologies-details.html)?

if thats true, it means that the default settings of the agent will bring all the types of transactions that finds in the server and are in the supported technologies?

thanks!

---

<div class="post-metadata">

**Author:** ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)\
**Post date:** [March 31, 2021, 8:43am UTC](https://discuss.elastic.co/t/only-request-in-transaction-type-java-agent/268518/4 "2021-03-31T08:43:56Z")

</div>

Yes and no, the `transaction.type` is being set to `request` for all the supported technologies that are request-based, thus it will be the case for HTTP and other similar protocols.  
There are other types, for example `messaging` for message-driven communication like JMS/Kafka/... or `scheduled` for tasks that are handled by a scheduling framework, thus it's not a 1:1 mapping with the underlying technology.

However, if you need to know which framework is being used, then the `transaction.framework.name` and `transaction.framework.version` could be used, but those might not be visible yet on the UI in Kibana.

---

<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:** [April 21, 2021, 4:44am UTC](https://discuss.elastic.co/t/only-request-in-transaction-type-java-agent/268518/5 "2021-04-21T04:44:54Z")

</div>

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