path: util/aop/aop-api/src/main/java/com/knubisoft/aop/api/impl/XCorrelationIDHeaderAspect.java

XCorrelationIDHeaderAspect just adds the "X-Correlation-ID" header to each API response.

Technically aspect receives an original response from API and creates a new one to which copies all the information as status code, headers, and response body from an original response and adds a new "X-Correlation-ID" header.

The "X-Correlation-ID" header is often added to HTTP requests for the purpose of tracking and correlating requests and responses within a distributed system or microservices architecture. This header helps in diagnosing and troubleshooting issues, monitoring the flow of requests across different components, and providing better insights into the behavior of the system as a whole.
To better understand the purpose of using Correlation Id, I advise you to google more information about it.

  • No labels