Skip to content

[release/11.0] [EventPipe] Align EventPipeThreadSamplingRate parsing on CoreCLR and NativeAOT - #135777

Merged
steveisok merged 1 commit into
release/11.0from
backport/pr-135683-to-release/11.0
Oct 19, 2026
Merged

steveisok merged 1 commit into
release/11.0from
backport/pr-135683-to-release/11.0

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #135683 to release/11.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/11.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 (#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
@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.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke
See info in area-owners.md if you want to be subscribed.

@ViveliDuCh

Copy link
Copy Markdown
Member

Hi,

the code complete date for GA is Monday 19th October. Make sure to merge this PR on that date at the latest, or it won't make it into that release.

As a reminder, if this is a product change, you also need Tactics approval before merging this PR (test-only or infra-only changes don't require Tactics approval).

Happy to help with the merge if needed!

@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
@steveisok
steveisok self-requested a review October 19, 2026 15:16
@steveisok
steveisok merged commit 9748a08 into release/11.0 Oct 19, 2026
123 of 125 checks passed
@steveisok
steveisok deleted the backport/pr-135683-to-release/11.0 branch October 19, 2026 15:16
@rbhanda rbhanda added this to the 11.0.0 milestone Oct 19, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants