Closed DCameronMauch closed 6 months ago
We found out we had Jedis included through some long path to version 2.9.0 - 9 years old. The rest of our code uses Jedis 4.4.3. So we specifically added that dependency. Hopefully, somehow, this makes the problem go away. I will post tomorrow on status.
Update: Nope, made no difference. Still getting exact same exception.
Never mind. I discovered that some libraries from another library were bringing in old versions of kamon-executors, kamon-instrumentation-common, and kamon-logback. It appears these are not part of the kamon-bundle, and thus not evicted to newer version. Those were 2.2.0, while the bundle was 2.7.1.
One service seems to be working now, but another is not. Same error as above.
% sbt dependencyTree | grep kamon | awk -F+ '{ print $2 }' | sort | uniq | grep -v evicted
-io.kamon:kamon-bundle_2.12:2.7.1 [S]
-io.kamon:kamon-core_2.12:2.7.1 [S]
-io.kamon:kamon-datadog_2.12:2.7.1 [S]
-io.kamon:kamon-executors_2.12:2.7.1 [S]
-io.kamon:kamon-instrumentation-common_2.12:2.7.1 [S]
-io.kamon:kamon-logback_2.12:2.7.1 [S]
Looks like there is an issue with the code being called with -javaagent referencing an older version of the agent.
We have Kamon inside our Play 2.6 app. Our dependencies bring in kamon-bundle, and kamon-datadog, both version 2.7.1. We also bring in sbt-kanela-runner-play-2.6 version 2.0.14. We include the JavaAgent in the build.sbt along with PlayScala. We have done with with 6 services. 5 of them run just fine. But one fails with this message: