From ff29ea71d508a2a8b20bfe22aeeca5af6a6e94be Mon Sep 17 00:00:00 2001 From: Daniel Silverthorn Date: Thu, 22 Mar 2018 15:35:20 -0400 Subject: Fix transaction id not being passed to champ Change-Id: I5752bb5671922d78076781d34e006aa98e4f3a1b Issue-ID: AAI-929 Signed-off-by: Daniel Silverthorn --- src/main/java/org/onap/crud/dao/champ/ChampDao.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/org/onap/crud/dao/champ/ChampDao.java b/src/main/java/org/onap/crud/dao/champ/ChampDao.java index 95a7369..18d4946 100644 --- a/src/main/java/org/onap/crud/dao/champ/ChampDao.java +++ b/src/main/java/org/onap/crud/dao/champ/ChampDao.java @@ -30,6 +30,7 @@ import org.apache.http.NameValuePair; import org.apache.http.client.utils.URLEncodedUtils; import org.apache.http.message.BasicNameValuePair; import org.eclipse.jetty.util.security.Password; +import org.onap.aai.cl.mdc.MdcContext; import org.onap.aai.logging.LoggingContext; import org.onap.aai.cl.api.Logger; import org.onap.aai.cl.eelf.LoggerFactory; @@ -591,7 +592,7 @@ public class ChampDao implements GraphDao { private Map> createHeader() { Map> headers = new HashMap<>(); headers.put(HEADER_FROM_APP, Arrays.asList(FROM_APP_NAME)); - headers.put(HEADER_TRANS_ID, Arrays.asList(MDC.get(LoggingContext.LoggingField.REQUEST_ID.toString()))); + headers.put(HEADER_TRANS_ID, Arrays.asList(MDC.get(MdcContext.MDC_REQUEST_ID))); return headers; } -- cgit 1.2.3-korg