# APM Agent in Scala application

**URL:** <https://discuss.elastic.co/t/apm-agent-in-scala-application/138850>\
**Category:** APM\
**Created:** [July 6, 2018, 8:19am UTC](https://discuss.elastic.co/t/apm-agent-in-scala-application/138850 "2018-07-06T08:19:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![neirda](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@neirda](https://discuss.elastic.co/u/neirda)\
**Post date:** [July 6, 2018, 8:19am UTC](https://discuss.elastic.co/t/apm-agent-in-scala-application/138850/1 "2018-07-06T08:19:33Z")

</div>

Hello.

I am trying to use the APM with the java agent into a Scala application, built by sbt.  
I have installed and launched with success Elasticsearch and Kibana.

I have also integrated the java agent into my application as show below

```auto
    sbt \
        -J-javaagent:/.ivy2/cache/co.elastic.apm/elastic-apm-agent/jars/elastic-apm-agent-0.5.1.jar \
        -J-Delastic.apm.logging.log_level=TRACE \
        -J-Delastic.apm.service_name=my-application-name \
        -J-Delastic.apm.application_packages=com.application \
        -J-Delastic.apm.server_url=http://localhost:8200 \

```

Problem, when I go on the APM tab of Kibana, there is nothing to be shown. The agent doesn't seem to be found. Even when launching the application, no trace in console.

Did I miss something? Or the agent don't work yet with Scala?

Have a nice day.  
Neirda

---

<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:** [July 6, 2018, 8:39am UTC](https://discuss.elastic.co/t/apm-agent-in-scala-application/138850/2 "2018-07-06T08:39:46Z")

</div>

Which frameworks does you application use? We did not yet test the agent with Scala.

Take a look at which technologies we currently support: [https://www.elastic.co/guide/en/apm/agent/java/current/intro.html#supported-technologies](https://www.elastic.co/guide/en/apm/agent/java/current/intro.html#supported-technologies)

Note you are using an outdated version of the agent. The current version is 0.6.0.

---

<div class="post-metadata">

**Author:** ![neirda](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@neirda](https://discuss.elastic.co/u/neirda)\
**Post date:** [July 6, 2018, 9:24am UTC](https://discuss.elastic.co/t/apm-agent-in-scala-application/138850/3 "2018-07-06T09:24:41Z")

</div>

Thanks for your answer.

My application use [Vert.x](https://vertx.io/) (not a framework, but a tool-kit).

The change of version of the agent helped having trace in logs. But still nothing in the APM logs, or in APM tab inside Kibana.

---

<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:** [July 6, 2018, 10:02am UTC](https://discuss.elastic.co/t/apm-agent-in-scala-application/138850/4 "2018-07-06T10:02:26Z")

</div>

Vert.x is not supported at the moment, but it is something we want to add support for in the future.

For the time being, you could use the [API](https://www.elastic.co/guide/en/apm/agent/java/current/public-api.html) to create custom transactions.

---

<div class="post-metadata">

**Author:** ![neirda](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@neirda](https://discuss.elastic.co/u/neirda)\
**Post date:** [July 6, 2018, 10:03am UTC](https://discuss.elastic.co/t/apm-agent-in-scala-application/138850/5 "2018-07-06T10:03:49Z")

</div>

Okay, I will do that.

Thanks for your answers.

---

<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 27, 2018, 6:03am UTC](https://discuss.elastic.co/t/apm-agent-in-scala-application/138850/6 "2018-07-27T06:03:49Z")

</div>

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