Expose project evaluation metrics via System.Diagnostics.Metrics#14458
Draft
OvesN wants to merge 1 commit into
Draft
Expose project evaluation metrics via System.Diagnostics.Metrics#14458OvesN wants to merge 1 commit into
OvesN wants to merge 1 commit into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ab510081-14dc-4a61-a19a-cd64006e0fd4
OvesN
force-pushed
the
dev/veronikao/evaluation-metrics
branch
from
July 21, 2026 11:45
1e37e52 to
aed1472
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #14419
Context
Project evaluations initiated directly through the MSBuild object model are not necessarily visible to the binary logger attached to a later build. Hosts need a low-volume way to measure evaluation count and duration without requiring every caller to add custom instrumentation.
Changes Made
Microsoft.Buildmeter withmsbuild.project.evaluationsandmsbuild.project.evaluation.durationinstruments.System.Diagnostics.DiagnosticSourcefor .NET Framework hosts.Testing
msbuildwas absent from PATH. The affected Framework class, full OM net472 suite, and portable-task test all passed when rerun individually.Notes
MSBuild exposes the meter but does not configure an exporter or send measurements. Collection remains the responsibility of the host or diagnostic tooling. Metrics are process-local, so consumers must subscribe in each SDK, server, or worker process they need to observe.