As part of log forwarding, we are now generating a v4 UUID Correlation ID to attach to our MRT logs so that our logs can be searched for outside of MRT. In MRT, this is now added as a new header, x-correlation-id, to the event object, which is the json representation of the HTTP request. In pwa-kit, we then need to pull this new header, modify the response, and add this header to the response so that the correlation ID value is accessible and visible to the user.
Before we merge this PR, is it possible to verify that the x-correlation-id from the incoming header, matches the SCAPI request headers, on both the server and the client side?
Description
As part of log forwarding, we are now generating a v4 UUID Correlation ID to attach to our MRT logs so that our logs can be searched for outside of MRT. In MRT, this is now added as a new header,
x-correlation-id
, to the event object, which is the json representation of the HTTP request. In pwa-kit, we then need to pull this new header, modify the response, and add this header to the response so that the correlation ID value is accessible and visible to the user.GUS: W-15706159 Linked PR to generate Correlation ID and add to Log Center logs: https://git.soma.salesforce.com/cc-mobify/portal_app/pull/5770 Linked PR to add Correlation ID to Splunk logs and log tailing: https://git.soma.salesforce.com/cc-mobify/portal_app/pull/5806
Types of Changes
Changes
x-api-gateway-event
header, thex-correlation-id
header is now the value used to set the new requestIdx-correlation-id
is set as a response header if it existsHow to Test-Drive This PR
x-correlation-id
is set as a response headerChecklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization