Skip to content

Upload msgo/systemcrypto telemetry#2265

Merged
qmuntal merged 1 commit into
microsoft/mainfrom
dev/qmuntal/systemcryptotel
May 7, 2026
Merged

Upload msgo/systemcrypto telemetry#2265
qmuntal merged 1 commit into
microsoft/mainfrom
dev/qmuntal/systemcryptotel

Conversation

@qmuntal
Copy link
Copy Markdown
Member

@qmuntal qmuntal commented May 7, 2026

GOEXPERIMENT=systemcrypto will disappear in Go 1.27, so we won't be able to use it as a proxy to count systemcrypto usage in telemtry. Use a dedicated counter instead.

This implementation is a bit generic to accommodate future systemcrypto refactors.

For #2261

Copilot AI review requested due to automatic review settings May 7, 2026 07:39
@qmuntal qmuntal requested a review from a team as a code owner May 7, 2026 07:39
@qmuntal qmuntal enabled auto-merge May 7, 2026 07:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a dedicated Microsoft telemetry counter for systemcrypto usage so telemetry can continue to measure enablement/disablement after GOEXPERIMENT=systemcrypto is removed (Go 1.27+), and centralizes platform support detection to a reusable helper.

Changes:

  • Increment new telemetry counters msgo/systemcrypto:enabled / msgo/systemcrypto:disabled during go invocation when system crypto is supported for the target platform.
  • Add internal/platform.SystemCryptoSupported(goos, goarch) and use it to centralize systemcrypto platform support checks.
  • Ensure build configuration exposes SystemCryptoDisabled consistently for consumers like telemetry.

Patches are happy!

Show a summary per file
File Description
patches/0002-Add-crypto-backend-GOEXPERIMENTs.patch Introduces internal/platform.SystemCryptoSupported used to determine whether systemcrypto is relevant for a given target.
patches/0003-Implement-crypto-internal-backend.patch Refactors systemcrypto platform support detection in ParseGOEXPERIMENT to use the centralized helper.
patches/0009-Add-appinsights-telemetry.patch Adds msgo/systemcrypto:* counters to the telemetry stats emitted by the go command.
patches/0013-Add-Microsoft-version-information.patch Keeps buildcfg evolution consistent with prior patches; no patch-set consistency issues found related to these changes.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 2

Comment thread patches/0009-Add-appinsights-telemetry.patch
Comment thread patches/0009-Add-appinsights-telemetry.patch
@qmuntal qmuntal merged commit a2ea4e2 into microsoft/main May 7, 2026
62 checks passed
@qmuntal qmuntal deleted the dev/qmuntal/systemcryptotel branch May 7, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants