-
Notifications
You must be signed in to change notification settings - Fork 46
Sjain/add new span for async operation Fixes AB#3170313 #2798
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new telemetry span PersistToStorageAsync for tracking asynchronous storage operations in the broker, and fixes an account matching bug in the token cache by ensuring environment checks are consistently applied when matching accounts with their credentials.
- Added new span name
PersistToStorageAsyncto the SpanName enum for telemetry tracking - Fixed account-credential matching logic to include environment comparison at the credential level
- Updated documentation to reflect the corrected behavior
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| SpanName.java | Added PersistToStorageAsync enum value for telemetry tracking of async storage operations |
| MsalOAuth2TokenCache.java | Fixed bug where environment wasn't being checked when matching accounts to credentials, ensuring proper account ownership validation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
✅ Work item link check complete. Description contains link AB#3170313 to an Azure Boards work item. |
|
❌ Work item link check failed. Description contains AB#3170313 but the Bot could not link it to an Azure Boards work item. Click here to learn more. |
This PR adds a new span to be used in broker. Fixes AB#3170313