# APM Java agent not working with Vert.x

**URL:** <https://discuss.elastic.co/t/apm-java-agent-not-working-with-vert-x/287186>\
**Category:** APM\
**Tags:** java\
**Created:** [October 20, 2021, 10:48am UTC](https://discuss.elastic.co/t/apm-java-agent-not-working-with-vert-x/287186 "2021-10-20T10:48:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pablo\_Albertengo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pablo_albertengo/32/47685_2.png) [@Pablo\_Albertengo](https://discuss.elastic.co/u/Pablo_Albertengo)\
**Post date:** [October 20, 2021, 10:48am UTC](https://discuss.elastic.co/t/apm-java-agent-not-working-with-vert-x/287186/1 "2021-10-20T10:48:21Z")

</div>

Hi!

I am not being able to audit the transactions against my Vert.x application using the Java agent for this purpose.  
According to the documentation:

> **[Supported technologies | APM Java Agent Reference \[1.x\] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/1.x/supported-technologies-details.html)**

there is an experimental support for Vert.x since version 1.0.24

With other technologies (for example JAX-RS running on Payara) I had no problems.  
The agent configuration was passed as a parameter in the initialization of the artifact:

```auto
-javaagent: /path-to/elastic-apm-agent-1.24.0.jar
-Delastic.apm.service_name = service-name
-Delastic.apm.config_file = /path-to-config

```

Currently It's only auditing the app metrics but no transactions.

The versions I use are:

```auto
APM Java Agent: 1.0.24
Vert.x Web: 3.9.3
Java: 1.8.0_13

```

Do you have any idea what the problem could be?

I tried on the other hand to use the @CaptureTransaction annotation  
And although in this case it audit the transactions, it is not auditing information related to the Http request (http.response.status\_code for example).

---

<div class="post-metadata">

**Author:** ![alexander.wert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexander.wert/32/95085_2.png) [@alexander.wert](https://discuss.elastic.co/u/alexander.wert)\
**Post date:** [October 20, 2021, 11:16am UTC](https://discuss.elastic.co/t/apm-java-agent-not-working-with-vert-x/287186/2 "2021-10-20T11:16:29Z")

</div>

Hi @Pablo_Albertengo,

as of now, Vert.x is an experimental instrumentation which means it's not enabled per default. You need to set the [enable\_experimental\_instrumentations](https://www.elastic.co/guide/en/apm/agent/java/current/config-core.html#config-enable-experimental-instrumentations) config option to `true` to enable Vert.x instrumentation.

---

<div class="post-metadata">

**Author:** ![Pablo\_Albertengo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pablo_albertengo/32/47685_2.png) [@Pablo\_Albertengo](https://discuss.elastic.co/u/Pablo_Albertengo)\
**Post date:** [October 20, 2021, 1:09pm UTC](https://discuss.elastic.co/t/apm-java-agent-not-working-with-vert-x/287186/3 "2021-10-20T13:09:52Z")

</div>

Thanks a lot @alexander.wert !!!  
Now including the configuration option and upgrading the agent version (because the configuration option was included since 1.0.25) it is correctly registering the transactions for me.

---

<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:** [November 10, 2021, 9:10am UTC](https://discuss.elastic.co/t/apm-java-agent-not-working-with-vert-x/287186/4 "2021-11-10T09:10:17Z")

</div>

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