Skip to content

Add msgo/modulehash telemetry counter#2186

Draft
gdams wants to merge 2 commits intomicrosoft/mainfrom
dev/gadams/updater
Draft

Add msgo/modulehash telemetry counter#2186
gdams wants to merge 2 commits intomicrosoft/mainfrom
dev/gadams/updater

Conversation

@gdams
Copy link
Member

@gdams gdams commented Mar 12, 2026

Emit a SHA-256 hash of the main module path as a numeric telemetry counter during build, install, and run commands.

Re-vendor go-infra telemetry to pick up wildcard prefix support in the upload filter.

Emit a SHA-256 hash of the main module path as a numeric telemetry
counter during build, install, and run commands. The module path is
hashed to avoid transmitting potentially sensitive names.

Re-vendor go-infra telemetry to pick up wildcard prefix support in
the upload filter.
@gdams gdams requested a review from a team as a code owner March 12, 2026 14:24
Copilot AI review requested due to automatic review settings March 12, 2026 14:24
@gdams gdams requested review from dagood and qmuntal March 12, 2026 14:25
Copy link
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 new Microsoft-specific telemetry counter (msgo/modulehash:*) derived from the main module path and updates the vendored go-infra/telemetry dependency to support wildcard-prefix counter filtering during upload.

Changes:

  • Emit msgo/modulehash:<sha256-as-decimal> via cmd/go/internal/telemetrystats by hashing the module path from go.mod.
  • Update the vendored github.com/microsoft/go-infra/telemetry version and extend upload filtering to support wildcard counter prefixes (e.g. msgo/modulehash:*).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
patches/0009-Add-appinsights-telemetry.patch Adds the msgo/modulehash counter emission to telemetrystats.
patches/0001-Vendor-external-dependencies.patch Re-vendors go-infra/telemetry, adds wildcard-prefix support for upload filtering, and updates the upload config to include msgo/modulehash:*.

@gdams gdams marked this pull request as draft March 12, 2026 17:26
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.

2 participants