Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture and instrument cache errors #7021

Merged
merged 3 commits into from
Apr 10, 2024
Merged

Conversation

konstantin-msft
Copy link
Collaborator

  • Add CacheError.
  • Capture and throw cache errors as CacheError.
  • Instrument the number of tokens in the cache if CacheError occurs.

Note: Cache errors, like "cache quota exceeded", are not captured and reported as empty errors at the moment.

@github-actions github-actions bot added msal-browser Related to msal-browser package msal-common Related to msal-common package labels Apr 10, 2024
- Capture and throw cache errors as CacheError.
- Instrument the number of tokens in the cache if CacheError occurs.
@konstantin-msft konstantin-msft merged commit b7c2309 into dev Apr 10, 2024
44 checks passed
@konstantin-msft konstantin-msft deleted the capture_cache_errors branch April 10, 2024 21:13
Copy link
Member

@sameerag sameerag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for getting this in, like the coverage. I assume this will also mean we can get the percentage of these errors in dashboards too?

@konstantin-msft
Copy link
Collaborator Author

Thanks for getting this in, like the coverage. I assume this will also mean we can get the percentage of these errors in dashboards too?

Yes, we will be able to pivot on cache errors too,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
msal-browser Related to msal-browser package msal-common Related to msal-common package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants