From 9ad4be1ae717e6a5b6dde52d32dea6013407dc2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNithin?= Date: Mon, 8 Apr 2024 08:47:52 +0530 Subject: [PATCH] Improvement in Listerner error metrics Aspect --- .../metrics/EmitCustomTransactionListenerMetricsAspect.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/hlf/java/rest/client/metrics/EmitCustomTransactionListenerMetricsAspect.java b/src/main/java/hlf/java/rest/client/metrics/EmitCustomTransactionListenerMetricsAspect.java index e3898e9..ecf3dcd 100644 --- a/src/main/java/hlf/java/rest/client/metrics/EmitCustomTransactionListenerMetricsAspect.java +++ b/src/main/java/hlf/java/rest/client/metrics/EmitCustomTransactionListenerMetricsAspect.java @@ -38,10 +38,12 @@ public Object interceptedKafkaMetricsEmissionAdvice(ProceedingJoinPoint proceedi if (e instanceof UnrecognizedTransactionPayloadException) { invalidInboundTransactionMessageCounter.increment(); + throw e; } if (e instanceof ContractException) { inboundTxnContractExceptionCounter.increment(); + throw e; } inboundTxnProcessingFailureCounter.increment();