openBackhaul / MicroWaveDeviceInventory

Physical and logical inventory of the MW SDN Domain
Apache License 2.0
5 stars 1 forks source link

To log the request to ODL controller to ExecutionAndTraceLog application #883

Open PrathibaJee opened 7 months ago

PrathibaJee commented 7 months ago

Currently MWDI is not logging the REST request to the ODL controller in the EATL application. If logging to EATL about the OLD requests are not included in MWDI, then please find the proposal ,

Proposal : Please include a mechanics to log the REST request to the ODL controller in the EATL application. Logging this details in EATL will provide visibility about the MWDI <--> ODL transaction and also help operations team to identify and troubleshoot the failed ODL requests by viewing the EATL logs.

Logging a request to EATL requires the mandatory fields user , originator , x-correlator, trace-indicator, customer-journey. Since the REST request to the ODL controller will not have the custom headers user , originator , x-correlator, trace-indicator, customer-journey , proposing the following values for this while logging a request,

user - <MWDI application name>, 
originator - <MWDI application name>, 
x-correlator - <new system generated x-correlator using the - new RandExp(/^[0-9A-Fa-f]{8}(?:-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12}$/).gen();), 
trace-indicator - 1, 
customer-journey  - <MWDICyclicOperations>

Kindly please discuss this request and proposal with ApplicationOwner(Thorsten) for deciding.