This is a guide for migrating from Lightbend Telemetry 2.8 to Lightbend Telemetry 2.9.
Note: Lightbend Telemetry 2.11 supports both Metrics 3 and Metrics 4.
Coda Hale Metrics has been upgraded from version 3 to version 4.
Only the JMX reporter is affected by this change. If you have other dependencies that are still on Metrics 3, then you may get this exception if the old JMX reporter is referenced:
The preferred option is to upgrade to Lightbend Telemetry 2.11 or later and select the Metrics 3 core dependency.
Otherwise, one option is to see if all dependencies can be aligned on Metrics 4. Or there may be compatibility support. For example, if you’re using the Datastax driver for Cassandra, then you can workaround this by having the Datastax driver use Metrics 4.
An alternative option is to force Lightbend Telemetry to use Metrics 3 instead. This works if you’re not using the Lightbend Telemetry JMX reporter—all other reporters should be compatible across Metrics 3 and Metrics 4. For example, the following dependency override can be added in sbt:
dependencyOverrides += "io.dropwizard.metrics" % "metrics-core" % "3.2.6"
The OverOps integration is deprecated and will be removed in the next major release of Lightbend Telemetry.