diff --git a/pom.xml b/pom.xml
index f67efe3..17441c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,7 +34,7 @@
dropwizard_dropwizard-redis
6.1.0
- 6.4.2.RELEASE
+ 6.5.3.RELEASE
1.1.8
diff --git a/src/main/java/io/dropwizard/redis/metrics/DropwizardCommandLatencyRecorder.java b/src/main/java/io/dropwizard/redis/metrics/DropwizardCommandLatencyRecorder.java
index 4dc1945..c96c958 100644
--- a/src/main/java/io/dropwizard/redis/metrics/DropwizardCommandLatencyRecorder.java
+++ b/src/main/java/io/dropwizard/redis/metrics/DropwizardCommandLatencyRecorder.java
@@ -46,11 +46,11 @@ public void recordCommandLatency(SocketAddress local, SocketAddress remote, Prot
CommandLatencyId commandLatencyId = CommandLatencyId.create(local, remote, protocolKeyword);
Timer firstResponseTimer = firstResponseTimers.computeIfAbsent(commandLatencyId, c -> metricRegistry
- .timer(name(METRIC_FIRST_RESPONSE, c.commandType().name())));
+ .timer(name(METRIC_FIRST_RESPONSE, c.commandType().toString())));
firstResponseTimer.update(firstResponseLatency, TimeUnit.NANOSECONDS);
Timer completionTimer = completionTimers.computeIfAbsent(commandLatencyId, c -> metricRegistry
- .timer(name(METRIC_COMPLETION, c.commandType().name())));
+ .timer(name(METRIC_COMPLETION, c.commandType().toString())));
completionTimer.update(completionLatency, TimeUnit.NANOSECONDS);
}
diff --git a/src/main/java/io/dropwizard/redis/metrics/event/visitor/CommandLatencyEventVisitor.java b/src/main/java/io/dropwizard/redis/metrics/event/visitor/CommandLatencyEventVisitor.java
index 5ce439b..69cd08a 100644
--- a/src/main/java/io/dropwizard/redis/metrics/event/visitor/CommandLatencyEventVisitor.java
+++ b/src/main/java/io/dropwizard/redis/metrics/event/visitor/CommandLatencyEventVisitor.java
@@ -32,7 +32,7 @@ public CommandLatencyEventVisitor(final String name, final MetricRegistry metric
@Override
public void visit(final CommandLatencyEvent event) {
event.getLatencies().forEach((commandLatencyId, commandMetrics) -> {
- final String commandType = commandLatencyId.commandType().name();
+ final String commandType = commandLatencyId.commandType().toString();
final String metricName = metricNames.computeIfAbsent(commandType, (type) -> MetricRegistry.name(name, type));
metrics.timer(metricName).update(commandMetrics.getCompletion().getMax(), commandMetrics.getTimeUnit());
});