Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 7, 2025

Backport of #64265 to release/10.0

/cc @JamesNK @copilot

Enable Identity telemetry by instantiating metrics classes directly

Change identity metrics to not require some types registered to DI.

Fixes #64264

Customer Impact

Identity metrics aren't working because they rely on some types being registered with DI. They were registered in tests, but not in real-world AddIdentity() methods. It isn't possible for the user to register these types because they're internal.

Changes in this PR:

  • Modify identity to not require the internal types to be registered.
  • Ensure metrics types are registered with AddMetrics() when identity types are added to DI. AddMetrics() should have been called by other code in the app (i.e. authentication, or hosting) but this changes ensures that's true.

Regression?

  • Yes
  • No

[If yes, specify the version the behavior has regressed from]

Risk

  • High
  • Medium
  • Low

[Justify the selection above]

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

When servicing release/2.3

  • Make necessary changes in eng/PatchConfig.props

Copilot AI and others added 13 commits November 7, 2025 10:11
Co-authored-by: captainsafia <1857993+captainsafia@users.noreply.github.com>
…able UserManagerMetrics registration

Co-authored-by: captainsafia <1857993+captainsafia@users.noreply.github.com>
Co-authored-by: JamesNK <303201+JamesNK@users.noreply.github.com>
Co-authored-by: JamesNK <303201+JamesNK@users.noreply.github.com>
Co-authored-by: JamesNK <303201+JamesNK@users.noreply.github.com>
…ager

Co-authored-by: JamesNK <303201+JamesNK@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@JamesNK JamesNK added the area-identity Includes: Identity and providers label Nov 8, 2025
@JamesNK JamesNK added this to the 10.0.1 milestone Nov 8, 2025
@JamesNK JamesNK added the Servicing-consider Shiproom approval is required for the issue label Nov 8, 2025
@JamesNK JamesNK requested a review from captainsafia November 8, 2025 04:05
@dotnet-policy-service
Copy link
Contributor

Hi @@github-actions[bot]. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge.

To learn more about how to prepare a servicing PR click here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-identity Includes: Identity and providers Servicing-consider Shiproom approval is required for the issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants