openBackhaul / OamLog

List of records about OAM activities
Apache License 2.0
6 stars 7 forks source link

To remove response header parameter BackendTime for failed request #378

Closed IswaryaaS closed 1 month ago

IswaryaaS commented 2 months ago

As per https://github.com/openBackhaul/ApplicationPattern/issues/903. backendTime shall be removed from responseHeader of negative responses.

To achieve the same, a minor change has been made in https://github.com/openBackhaul/ApplicationPattern/pull/1011.

Additionally, in Controllers/BasicServices.js and Controllers/IndividualServices.js file, "-1" shall be used in last placeholder in below line in catch block for all services

let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);

image