By default, the server looks for a correlation ID header on the request and uses the value if found. This behavior integrates the server into a larger system of other servers using correlation IDs.
If a correlation ID header is not found, the server generates a new, unique correlation ID for each HTTP request.
The connection handler uses the correlation-id-request-header
property
to determine which request headers are correlation ID headers, as shown in the following
configuration. The actual default configuration might differ.
dsconfig set-connection-handler-prop --handler-name "HTTPS Connection Handler" \
--set correlation-id-request-header:X-Request-Id \
--set correlation-id-request-header:X-Correlation-Id \
--set correlation-id-request-header:Correlation-Id \
--set correlation-id-request-header:X-Amzn-Trace-Id
If a request contains more than one of the previous correlation ID headers, the server checks the configured header names in order, and then uses the first one found.