kamon-io / Kamon

Distributed Tracing, Metrics and Context Propagation for applications running on the JVM
https://kamon.io
Other
1.41k stars 327 forks source link

Instrumentation is broken With play 3.0, scala 3.3.1, kamon-bundle and Prometheus #1320

Open Dichotomia opened 7 months ago

Dichotomia commented 7 months ago

We are switching from scala 2.13.12 to scala 3.3.1. This is the only change.

We have some errors at boot :

[main] WARNING 2024-02-16 13:57:57 Logger : Error trying to load Instrumentation: kamon.instrumentation.akka.instrumentations.akka_25.DispatcherInstrumentation with error: java.lang.ClassNotFoundException: kamon.instrumentation.akka.instrumentations.akka_25.DispatcherInstrumentation

[main] WARNING 2024-02-16 13:57:57 Logger : Error trying to load Instrumentation: kamon.instrumentation.akka.instrumentations.akka_25.remote.RemotingInstrumentation with error: java.lang.ClassNotFoundException: kamon.instrumentation.akka.instrumentations.akka_25.remote.RemotingInstrumentation

The application starts but like the screenshot shows, we lost some http request paths

image
Dichotomia commented 5 months ago

I just found a workaround. I added this dependency

  ("io.kamon" %% "kamon-play" % kamonVersion)
    .cross(CrossVersion.for3Use2_13)
    .exclude("io.kamon", "kamon-core_2.13"),

And it worked