microsoft-authentication-library-for-java
microsoft-authentication-library-for-java copied to clipboard
Use OpenTelemetry to collect and log client-side data
OpenTelemetry is a product that can help create consistent telemetry collection
- [ ] Use OpenTelemetry to collect and log the same data we are currently collecting
- [ ] Add public API to allow developers to opt-in to getting OpenTelemetry data.
- [ ] Capture metrics for success counter with tags client id, token source and cache refresh reason.
- [ ] Capture metrics for failure counter with tags client id, error code.
Extra, depending on whether or not we can integrate it into existing data streams:
- [ ] Add database to collect the datapoints
- [ ] Use the logged data to identify common issues (not using cache, long HTTP times, etc.)
Similar item in MSAL .NET: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/4229