Clojure support in APM Java Agent?


#1

Before debugging my problem further, does the APM Java Agent support Clojure applications at all? Can't seem to get any log output or anything when trying it with a project using Jetty and supported JVM.


(Felix Barnsteiner) #2

To be honest, I don't know. We have not yet tried the Java agent with other JVM languages yet. How are you installing and starting the agent? How does your Jetty application look like? Are you using jetty-servlet?


#3

Thanks for the reply! The latest agent jar is downloaded from Maven Central and the app is started like this:
java -server
-javaagent:/path/to/elastic-apm-agent.jar
-jar /path/to/clojure_app.jar

The configuration is provided via env variables. No log output though, even when defining the configuration as cli parameters.

The app runs jetty via ring-jetty-adapter: https://github.com/ring-clojure/ring/tree/master/ring-jetty-adapter

One problem is that the java agent requires to define the java package, but clojure uses namespaces instead.

For New Relic, there are 3rd party wrappers to enable clojure support: https://github.com/Yleisradio/new-reliquary


(system) #4

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