Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Dichotomia opened this issue Feb 16, 2024 · 1 comment

Comments

@Dichotomia
Copy link

Dichotomia commented Feb 16, 2024

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 Dichotomia changed the title Instrumentation is broken With play 3.0, scala 3.0, kamon-bundle and Prometheus Instrumentation is broken With play 3.0, scala 3.3.1, kamon-bundle and Prometheus Feb 16, 2024
@Dichotomia
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Selected
Development

No branches or pull requests

1 participant