From bb02f826052917011f9e5ccdd3f8613d70bf3fa9 Mon Sep 17 00:00:00 2001 From: Guruprasad Sridharan Date: Fri, 24 Jan 2020 08:07:57 +0530 Subject: [PATCH 1/2] Don't clear MDC, just remove the keys we set in run function in the finally block --- .../java/io/appform/core/hystrix/GenericHystrixCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/appform/core/hystrix/GenericHystrixCommand.java b/src/main/java/io/appform/core/hystrix/GenericHystrixCommand.java index ace61df..ec3689e 100644 --- a/src/main/java/io/appform/core/hystrix/GenericHystrixCommand.java +++ b/src/main/java/io/appform/core/hystrix/GenericHystrixCommand.java @@ -60,7 +60,7 @@ protected R run() throws Exception { if (scope != null) { scope.close(); } - MDC.clear(); + MDC.remove(TRACE_ID); } } }; From 7b11f3ba1593c3dbb1c61374e82ed2325a8ecc2f Mon Sep 17 00:00:00 2001 From: Guruprasad Sridharan Date: Fri, 24 Jan 2020 08:09:35 +0530 Subject: [PATCH 2/2] Bump version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 205d8db..64e675f 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ io.appform.core hystrix-function-wrapper - 1.1.4 + 1.1.5 Hystrix Function Wrapper An utility lib that allows lambdas to be wrapped in hystrix commands https://github.com/santanusinha/hystrix-function-wrapper