summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDaniel Silverthorn <daniel.silverthorn@amdocs.com>2018-03-22 15:35:20 -0400
committerDaniel Silverthorn <daniel.silverthorn@amdocs.com>2018-03-22 15:41:38 -0400
commitff29ea71d508a2a8b20bfe22aeeca5af6a6e94be (patch)
treee5442fe7a0b6fee034bee1f34dce443e5c1faa6c /src/main
parentb713fc2e83452517654c9e37c6380cb68bfbafe7 (diff)
Fix transaction id not being passed to champ
Change-Id: I5752bb5671922d78076781d34e006aa98e4f3a1b Issue-ID: AAI-929 Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/crud/dao/champ/ChampDao.java3
1 files changed, 2 insertions, 1 deletions
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<String, List<String>> createHeader() {
Map<String, List<String>> 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;
}