Is there a release of Kamon that is compatible with Akka 2.5.1 ?
I'm trying out the CoordinatedShutdown feature as follows
val system = ActorSystem("foo")
Kamon.start()
CoordinatedShutdown(system).addTask(CoordinatedShutdown.PhaseBeforeActorSystemTerminate, "shutdownKamon") { () =>
println(s"Shutting down Kamon")
Kamon.shutdown()
Future.successful(Done)
}
And get the following error when terminating with cntrl-C:
Detected java.lang.NoSuchMethodError error, which MAY be caused by incompatible Akka versions on the classpath. Please note that a given Akka version MUST be the same across all modules of Akka that you are using, e.g. if you use akka-actor [2.5.1 (resolved from current classpath)] all other core Akka modules MUST be of the same version. External projects like Alpakka, Persistence plugins or Akka HTTP etc. have their own version numbers - please make sure you're using a compatible set of libraries.
Uncaught error from thread [foo-akka.actor.default-dispatcher-3] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[foo]
java.lang.NoSuchMethodError: akka.actor.ActorSystem.shutdown()V
at kamon.Kamon$Instance.shutdown(Kamon.scala:79)
at kamon.Kamon$.shutdown(Kamon.scala:45)
If I comment out the Kamon.start and Kamon.shutdown, I see the println.