summaryrefslogtreecommitdiffstats
path: root/pomba/service-decomposition/src
diff options
context:
space:
mode:
authorTait,Trevor(rt0435) <rtait@amdocs.com>2019-02-28 16:11:28 -0500
committerTait,Trevor(rt0435) <rtait@amdocs.com>2019-02-28 16:11:43 -0500
commit651c9c8c012ff083dff988374bd53b0921060da6 (patch)
treeace19d6994dd22003485ee1e7e771c71f28421d0 /pomba/service-decomposition/src
parentb6eb694fee7598f8fafadc02ed32b27b6f127b4d (diff)
POMBA: X-ONAP-RequestId and X-PartnerName support
Issue-ID: LOG-551 Change-Id: Idaa91e841a471636a3c31c5e4c002f84d8d5ac33 Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'pomba/service-decomposition/src')
-rw-r--r--pomba/service-decomposition/src/main/java/org/onap/sdnc/apps/pomba/servicedecomposition/service/rs/RestServiceImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/pomba/service-decomposition/src/main/java/org/onap/sdnc/apps/pomba/servicedecomposition/service/rs/RestServiceImpl.java b/pomba/service-decomposition/src/main/java/org/onap/sdnc/apps/pomba/servicedecomposition/service/rs/RestServiceImpl.java
index 7dcd3de..52354dd 100644
--- a/pomba/service-decomposition/src/main/java/org/onap/sdnc/apps/pomba/servicedecomposition/service/rs/RestServiceImpl.java
+++ b/pomba/service-decomposition/src/main/java/org/onap/sdnc/apps/pomba/servicedecomposition/service/rs/RestServiceImpl.java
@@ -19,7 +19,6 @@
package org.onap.sdnc.apps.pomba.servicedecomposition.service.rs;
import static org.onap.sdnc.apps.pomba.servicedecomposition.exception.DiscoveryException.Error.*;
-
import java.util.UUID;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@@ -42,6 +41,7 @@ import org.springframework.stereotype.Component;
public class RestServiceImpl implements RestService {
private static Logger log = LoggerFactory.getLogger(RestServiceImpl.class);
private static final String EMPTY_JSON_OBJECT = "{}";
+ private static UUID instanceId = UUID.randomUUID();
@Autowired
private SpringService service;
@@ -58,6 +58,7 @@ public class RestServiceImpl implements RestService {
ONAPLogAdapter adapter = new ONAPLogAdapter(log);
adapter.getServiceDescriptor().setServiceName(SERVICE_NAME);
+ adapter.getServiceDescriptor().setServiceUUID(instanceId.toString());
adapter.entering(request);
try {
if (authorization == null || !this.basicAuthHeader.equals(authorization)) {