Skip to content

cmd/dist: telemetry support #71826

Description

@mauri870

CL 585235 added telemetry for commands in cmd, except for cmd/dist.

Since cmd/dist is built with the bootstrap toolchain, enabling telemetry requires Go 1.23 or later.

Go 1.24 requires Go 1.22 for bootstrapping, and Go 1.26 will require Go 1.24 or later, as described in golang/go#69315. If I understand correctly, we will need to wait until the Go 1.26 dev cycle to enable telemetry in cmd/dist.

I'm trying to prototype telemetry in cmd/dist and compile it using Go 1.24 as the bootstrap toolchain to validate this, but I'm encountering the following error:

Building Go cmd/dist using /usr/lib/go. (go1.24.0 linux/amd64)
package ./cmd/dist
        cmd/dist/util.go:21:2: use of internal package cmd/internal/telemetry/counter not allowed

I'm not sure whether this means cmd/dist should be allowed to import internal packages in 1.24 or if the issue is unrelated. Either way, we will need to address this at some point, so it's still worth including this issue in a milestone.

cc @golang/telemetry

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions