APM Agent in Scala application

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

    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

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

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

Thanks for your answer.

My application use Vert.x (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.

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 to create custom transactions.

1 Like

Okay, I will do that.

Thanks for your answers.

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