Implementing Correlation ID for API Management requests
When working with Azure API Management, you may want to enable traceability and correlation of requests across different services. This is where the Correlation ID comes in.
Similar to traceparent, the Correlation ID is a unique identifier passed along with the request and response headers. It allows you to track a request's flow as it moves through different services and systems.
In this article, we will explore how to generate a new correlation ID through API Management Inbound policies and pass it back to the Client through an outbound policy, which then is used to help troubleshoot specific calls with Application Insights.