Repository navigation
[release/10.0] [EventPipe] Align EventPipeThreadSamplingRate parsing on CoreCLR and NativeAOT - #135784
Merged
steveisok merged 3 commits intoOct 23, 2026
Conversation
…NativeAOT (dotnet#135683) When EventPipeThreadSamplingRate was added, parsing behavior differed between CoreCLR (hex) and NativeAOT (int). It'd be less confusing if they were aligned in behavior. EventPipeCircularMB, although still left as parsing hex, at least matches in behavior on CoreCLR and NativeAOT, and requires no clarification in [documentation](https://learn.microsoft.com/en-us/dotnet/core/diagnostics/eventpipe#trace-using-environment-variables) despite mono parsing as an integer. Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot App <[email protected]> Copilot-Session: dd77bf41-5897-406e-ac8a-42315c29c560 (cherry picked from commit f712935)
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Member
Author
steveisok
approved these changes
Oct 23, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Backport of #135683 to release/10.0
/cc @mdh1418
Customer Impact
Customer reported that docs for DOTNET_EventPipeThreadSamplingRate did not accurately depict that
DOTNET_EventPipeThreadSamplingRatewas parsed as a hex value on CoreCLR. Upon investigation, it does not look intentional, and resulted in differing behaviors between CoreCLR and NativeAOT. This aligns the experience by parsing the variable as an integer.Regression
Testing
Tested locally on release/10.0 before and after the change using minimal CoreCLR builds. Verified the configured sampling interval recorded in EventPipe trace headers: environment-variable values were interpreted as hexadecimal before the change and decimal afterward for example,
10produced a 16 ms interval before and 10 ms afterward.Risk
Low, this only changes how a single EventPipe environment variable is parsed.
IMPORTANT: If this backport is for a servicing release, please verify that:
release/X.0-staging, notrelease/X.0.release/X.0(no-stagingsuffix).Package authoring no longer needed in .NET 9
IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.