openBackhaul / RegistryOffice

Apache License 2.0
2 stars 8 forks source link

To correct the trace-indicator for the forwardings of /v1/bequeath-your-data-and-die #583

Closed PrathibaJee closed 3 months ago

PrathibaJee commented 3 months ago

RO::/v1/inquire-application-type-approvals will be initiated as a part of the /v1/bequeath-your-data-and-die API forwardings. This callback is executed as expected , but the trace-indicator should be corrected in the following scenario ,

  1. when there is an update in the tcp-client(an update-ltp will be triggered to ALT with trace-indicator: "1.1.2")
  2. trace-indicator of the "/v1/inquire-application-type-approvals" is also trace-indicator: "1.1.2". This needs to be modified to 1.1.3 and also the consequent requests
 {
    "x-correlator": "550e8400-e88b-11d4-a999-446655440775",
    "trace-indicator": "1.1.2",
    "user": "User Name",
    "originator": "RegistryOffice",
    "application-name": "ApplicationLayerTopology",
    "release-number": "2.1.1",
    "operation-name": "/v1/update-ltp",
    "response-code": 204,
    "timestamp": "2024-07-23T13:30:49+02:00",
    "exec-time": 249,
    "stringified-body": "{\"uuid\":\"ro-2-1-0-tcp-c-nr-2-1-0-000\",\"ltp-direction\":\"core-model-1-4:TERMINATION_DIRECTION_SINK\",\"client-ltp\":[\"ro-2-1-0-http-c-nr-2-1-0-000\"],\"server-ltp\":[],\"layer-protocol\":[{\"local-id\":\"0\",\"layer-protocol-name\":\"tcp-client-interface-1-0:LAYER_PROTOCOL_NAME_TYPE_TCP_LAYER\",\"tcp-client-interface-1-0:tcp-client-interface-pac\":{\"tcp-client-interface-configuration\":{\"remote-protocol\":\"tcp-client-interface-1-0:PROTOCOL_TYPE_HTTP\",\"remote-address\":{\"ip-address\":{\"ipv-4-address\":\"127.0.0.1\"}},\"remote-port\":3024}}}]}"
  },
  {
    "x-correlator": "550e8400-e88b-11d4-a999-446655440775",
    "trace-indicator": "1.1.2",
    "user": "User Name",
    "originator": "RegistryOffice",
    "application-name": "RegistryOffice",
    "release-number": "2.1.1",
    "operation-name": "/v1/inquire-application-type-approvals",
    "response-code": 204,
    "timestamp": "2024-07-23T13:30:49+02:00",
    "exec-time": 246,
    "stringified-body": "{\"approval-application\":\"TypeApprovalRegister\",\"approval-application-release-number\":\"2.1.1\",\"approval-operation\":\"/v1/regard-application\",\"approval-application-protocol\":\"HTTP\",\"approval-application-address\":{\"ip-address\":{\"ipv-4-address\":\"127.0.0.1\"}},\"approval-application-port\":3025}"
  }