Drop a not-very-helpful metric (logging works better in this case).

This commit is contained in:
Jon Chambers 2021-07-26 15:52:45 -04:00 committed by Jon Chambers
parent 1a1eab4ec0
commit cdef745a7a
1 changed files with 0 additions and 6 deletions

View File

@ -68,7 +68,6 @@ public class AccountsManager {
private static final String CREATE_COUNTER_NAME = name(AccountsManager.class, "createCounter");
private static final String DELETE_COUNTER_NAME = name(AccountsManager.class, "deleteCounter");
private static final String DELETE_ERROR_COUNTER_NAME = name(AccountsManager.class, "deleteError");
private static final String COUNTRY_CODE_TAG_NAME = "country";
private static final String DELETION_REASON_TAG_NAME = "reason";
@ -432,11 +431,6 @@ public class AccountsManager {
} catch (final RuntimeException | InterruptedException e) {
logger.warn("Failed to delete account", e);
Metrics.counter(DELETE_ERROR_COUNTER_NAME,
COUNTRY_CODE_TAG_NAME, Util.getCountryCode(account.getNumber()),
DELETION_REASON_TAG_NAME, deletionReason.tagValue).increment();
throw e;
}