Skip to content

[release/10.0] [EventPipe] Align EventPipeThreadSamplingRate parsing on CoreCLR and NativeAOT - #135784

Merged
steveisok merged 3 commits into
dotnet:release/10.0from
mdh1418:backport-135683-release-10.0
Oct 23, 2026
Merged

steveisok merged 3 commits into
dotnet:release/10.0from
mdh1418:backport-135683-release-10.0

Conversation

@mdh1418

@mdh1418 mdh1418 commented Oct 14, 2026

Copy link
Copy Markdown
Member

Backport of #135683 to release/10.0

/cc @mdh1418

Customer Impact

  • Customer reported
  • Found internally

Customer reported that docs for DOTNET_EventPipeThreadSamplingRate did not accurately depict that DOTNET_EventPipeThreadSamplingRate was 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

  • Yes
  • No

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, 10 produced 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:

  • For .NET 8 and .NET 9: The PR target branch is release/X.0-staging, not release/X.0.
  • For .NET 10+: The PR target branch is release/X.0 (no -staging suffix).

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.

…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

Copy link
Copy Markdown
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.

@mdh1418 mdh1418 changed the title [EventPipe] Align EventPipeThreadSamplingRate parsing on CoreCLR and NativeAOT [release/10.0] [EventPipe] Align EventPipeThreadSamplingRate parsing on CoreCLR and NativeAOT Oct 14, 2026
@steveisok steveisok added Servicing-consider Issue for next servicing release review Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Oct 17, 2026
@rbhanda rbhanda added this to the 10.0.14 milestone Oct 19, 2026
@mdh1418

mdh1418 commented Oct 23, 2026

Copy link
Copy Markdown
Member Author

/ba-g Test failure is #133779 and #130458

@steveisok
steveisok merged commit da3f565 into dotnet:release/10.0 Oct 23, 2026
99 of 101 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Tracing-coreclr Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants