Hi @Upasana Ghosh Thanks for reaching out. Yes, you can use a correlation ID to trace requests through Azure API Management.
To add a correlation ID to requests passing through APIM, you can use a policy expression in the inbound section of your API's policy. Here's an example of how you can do this:
Navigate to inbound policy on API or Operation layer, do the following changes:
- Create a GUID for your API request,
- Use <set-header> to create a GUID for the ‘correlation-id’
- Add a <trace> policy to trace the information inside your APIM Application Insights.
You could refer to the statement of above <message> and <metadata> from this link: https://learn.microsoft.com/en-us/azure/api-management/api-management-advanced-policies#elements-15
do let me know incase of further queries, I would be happy to assist you.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.