From b0ad819a2bf2e9511881c56ac8e379f0ef6d22bc Mon Sep 17 00:00:00 2001 From: Dulanjali Dilmi Date: Fri, 22 Mar 2024 14:31:30 +0530 Subject: [PATCH] Create ELK metadata for fault events Fix wso2/micro-integrator#3278 --- .../flow/statistics/collectors/FaultStatisticCollector.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/core/src/main/java/org/apache/synapse/aspects/flow/statistics/collectors/FaultStatisticCollector.java b/modules/core/src/main/java/org/apache/synapse/aspects/flow/statistics/collectors/FaultStatisticCollector.java index 8fba86c4c2..24a538b056 100644 --- a/modules/core/src/main/java/org/apache/synapse/aspects/flow/statistics/collectors/FaultStatisticCollector.java +++ b/modules/core/src/main/java/org/apache/synapse/aspects/flow/statistics/collectors/FaultStatisticCollector.java @@ -47,6 +47,7 @@ public static void reportFault(MessageContext messageContext) { dataUnit.setCurrentIndex(StatisticDataCollectionHelper.getParentFlowPosition(messageContext, null)); FaultEvent faultEvent = new FaultEvent(dataUnit); + faultEvent.getDataUnit().generateElasticMetadata(messageContext); addEventAndIncrementCount(messageContext, faultEvent); } }