microsoft-authentication-library-for-java
microsoft-authentication-library-for-java copied to clipboard
Ensure every correlation ID is properly logged
Correlation ID's are created on a per-request basis in RequestContext, and optionally set at the application level as an alternative. Every request gets a correlation ID, and they are critical to connect client-side logs to server-side logs.
Logging these correlation IDs has been mostly unchanged since the first version of MSAL Java, however customer issues have shown that there a gaps where correlation IDs are not properly logged in all failure cases.
We should audit how correlation IDs are logged, and ensure:
- Every correlation ID that gets made is logged at some point
- Correlation IDs are included in exceptions