ExecutionAndTraceService.js
This class provides functionalities to log the Service request to the ExecutionAndTraceLog application in the SDN microservice architecture. A REST call will be initiated from the current application to the ExecutionAndTracelog application to record the transaction happened in the service layer.
![]() |
|---|
Functions:
| Method and description | Input parameters | Return type |
|---|---|---|
| recordServiceRequest: This function formulates the request body with the required attributes that needs to be sent to record the service request in the ExecutionAndTraceLog application. |
{string} xCorrelator correlation tag of the current execution. {string} traceIndicator sequence number of the execution. {string} userName name of the user who is accessed the service. {string} originator originator of the request. {string} operationName name of the called service. {string} responseCode response code of the REST call execution. {string} requestBody request body of the executed REST call. {string} responseBody response body of the executed REST call. |
{Promise} return true if the operation is successful otherwise returns false. |
| recordServiceRequestFromClient: This function formulates the response body with the required attributes that needs to be sent to the Execution and Trace Log application. |
{string} serverApplicationName application name of the server side. {string} serverApplicationReleaseNumber application release number of the server side. {string} xCorrelator correlation tag of the current execution. {string} traceIndicator sequence number of the execution. {string} userName name of the user who is accessed the service. {string} originator originator of the request. {string} operationName name of the called service. {string} responseCode response code of the REST call execution. {string} requestBody request body of the executed REST call. {string} responseBody response body of the executed REST call. |
{Promise} return true if the operation is successful otherwise returns false. |

