From bab6b36e4d9c69e1f59cb167ed5d2b81dce55960 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Fri, 18 Mar 2022 16:43:26 -0400 Subject: [PATCH] Count reported messages by destination country code in addition to source country code --- .../textsecuregcm/WhisperServerService.java | 2 +- .../metrics/ReportedMessageMetricsListener.java | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java b/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java index 62d3025ae..b5132ef74 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/WhisperServerService.java @@ -474,7 +474,7 @@ public class WhisperServerService extends Application + Metrics.counter(REPORTER_COUNTER_NAME, COUNTRY_CODE_TAG_NAME, Util.getCountryCode(reporter.getNumber())).increment()); } }