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

@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 dotnet-policy-service bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Nov 15, 2025
@captainsafia
Copy link
Member

/azp run

@dotnet-policy-service dotnet-policy-service bot removed the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Nov 17, 2025
@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@captainsafia captainsafia added Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Nov 17, 2025
@captainsafia
Copy link
Member

Approved via email from tactics.

@wtgodbe wtgodbe merged commit 699b23e into release/10.0 Nov 17, 2025
20 of 28 checks passed
@wtgodbe wtgodbe deleted the backport/pr-64265-to-release/10.0 branch November 17, 2025 22:40
@dotnet-policy-service dotnet-policy-service bot modified the milestone: 10.0.1 Nov 17, 2025
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-approved Shiproom has approved the issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants