Unable to start kamon auto-weaving while using openjdk alpine docker image

7 views
Skip to first unread message

keyur....@gmail.com

unread,
Jan 10, 2019, 3:23:30 AM1/10/19
to kamon-user
Hi,

We are using kamon kamon-akka-http and kamon-autoweave to start tracing on our endpoints.

We observed that the auto weaving doesn't start (we get the kamon warning - It seems like your application was not started with the -javaagent:/path-to-aspectj-weaver.jar) when using openjdk8 alpine docker image - https://github.com/docker-library/openjdk/blob/47a6539cd18023dafb45db9013455136cc0bca07/8/jdk/alpine/Dockerfile

However, everything works correctly while using openjdk8 slim docker image - https://github.com/docker-library/openjdk/blob/c3023e4da10d10e9c9775eabe2d7baac146e7ae1/8/jdk/slim/Dockerfile

Here are the kamon module versions that are being used in the setup.

kamonCoreV="0.6.7"
kamonScalaV="0.6.7"
kamonAkkaV="0.6.8"
kamonAkkaHttpV="0.6.8"
kamonAutoweaveV="0.6.5"

What could be the issue?

I've setup a akka-http based web application to replicate the issue. The related docker images can be found at https://cloud.docker.com/repository/docker/keyursuchdeo/logging-context. The one with tag 'openjdk8alpine' gives the auto-weaving issue. The other on (openjdk8slim) works fine.

Thanks for your help.

Regards,
Keyur

Reply all
Reply to author
Forward
0 new messages