microsoft-authentication-library-for-java icon indicating copy to clipboard operation
microsoft-authentication-library-for-java copied to clipboard

Ensure every correlation ID is properly logged

Open Avery-Dunn opened this issue 1 month ago • 0 comments

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

Avery-Dunn avatar Oct 22 '25 20:10 Avery-Dunn