summaryrefslogtreecommitdiffstats
path: root/pomba/service-decomposition/src
diff options
context:
space:
mode:
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)) {