Add an "is primary" dimension to message latency measurements

This commit is contained in:
Jon Chambers
2024-07-17 12:15:59 -04:00
committed by Jon Chambers
parent 0ef3e00ba7
commit 4f10014902
3 changed files with 13 additions and 3 deletions

View File

@@ -222,7 +222,11 @@ public class WebSocketConnection implements MessageAvailabilityListener, Displac
if (throwable != null) {
sendFailuresCounter.increment();
} else {
messageMetrics.measureOutgoingMessageLatency(message.getServerTimestamp(), "websocket", client.getUserAgent(), clientReleaseManager);
messageMetrics.measureOutgoingMessageLatency(message.getServerTimestamp(),
"websocket",
device.isPrimary(),
client.getUserAgent(),
clientReleaseManager);
}
}).thenCompose(response -> {
final CompletableFuture<Void> result;