Skip to content

Conversation

@siddhijain
Copy link
Contributor

@siddhijain siddhijain commented Oct 28, 2025

This PR adds a new span to be used in broker. Fixes AB#3170313

@siddhijain siddhijain requested a review from a team as a code owner October 28, 2025 16:08
Copilot AI review requested due to automatic review settings October 28, 2025 16:08
Copy link
Contributor

Copilot AI left a 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 PersistToStorageAsync to 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.

@github-actions
Copy link

✅ Work item link check complete. Description contains link AB#3170313 to an Azure Boards work item.

@github-actions
Copy link

❌ 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.

@siddhijain siddhijain added the No-Changelog This Pull-Request has no associated changelog entry. label Oct 28, 2025
@siddhijain siddhijain merged commit edeb22a into dev Oct 29, 2025
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

No-Changelog This Pull-Request has no associated changelog entry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants