Skip to content

Commit

Permalink
Update dependency io.lettuce:lettuce-core to v6.5.3.RELEASE (release/…
Browse files Browse the repository at this point in the history
…4.0.x) (#418)

* Update dependency io.lettuce:lettuce-core to v6.5.3.RELEASE

* Fix command type name

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jochen Schalanda <jochen@schalanda.name>
  • Loading branch information
renovate[bot] and joschi authored Feb 17, 2025
1 parent 469bb7e commit f624b48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<sonar.projectKey>dropwizard_dropwizard-redis</sonar.projectKey>

<brave.version>6.1.0</brave.version>
<lettuce.version>6.4.2.RELEASE</lettuce.version>
<lettuce.version>6.5.3.RELEASE</lettuce.version>
<redis-mock.version>1.1.8</redis-mock.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});
Expand Down

0 comments on commit f624b48

Please sign in to comment.