go.mod: sync golang.org/x/telemetry@58a1122356f5 (#3857)

This picks up a bug fix that will be helpful when delve starts to
test telemetry counters.

Related: https://go-review.googlesource.com/c/telemetry/+/625496
This commit is contained in:
Hyang-Ah Hana Kim 2024-11-18 12:00:05 -05:00 committed by GitHub
parent 091e5535ab
commit f83958b923
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 5 deletions

2
go.mod

@ -18,7 +18,7 @@ require (
go.starlark.net v0.0.0-20231101134539-556fd59b42f6 go.starlark.net v0.0.0-20231101134539-556fd59b42f6
golang.org/x/arch v0.11.0 golang.org/x/arch v0.11.0
golang.org/x/sys v0.26.0 golang.org/x/sys v0.26.0
golang.org/x/telemetry v0.0.0-20241028140143-9c0d19e65ba0 golang.org/x/telemetry v0.0.0-20241106142447-58a1122356f5
golang.org/x/tools v0.14.0 golang.org/x/tools v0.14.0
gopkg.in/yaml.v3 v3.0.1 gopkg.in/yaml.v3 v3.0.1
) )

2
go.sum

@ -71,6 +71,8 @@ golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo=
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/telemetry v0.0.0-20241028140143-9c0d19e65ba0 h1:od0RE4kmouF+x/o4zkTTSvBnGPZ2azGgCUmZdrbnEXM= golang.org/x/telemetry v0.0.0-20241028140143-9c0d19e65ba0 h1:od0RE4kmouF+x/o4zkTTSvBnGPZ2azGgCUmZdrbnEXM=
golang.org/x/telemetry v0.0.0-20241028140143-9c0d19e65ba0/go.mod h1:8nZWdGp9pq73ZI//QJyckMQab3yq7hoWi7SI0UIusVI= golang.org/x/telemetry v0.0.0-20241028140143-9c0d19e65ba0/go.mod h1:8nZWdGp9pq73ZI//QJyckMQab3yq7hoWi7SI0UIusVI=
golang.org/x/telemetry v0.0.0-20241106142447-58a1122356f5 h1:TCDqnvbBsFapViksHcHySl/sW4+rTGNIAoJJesHRuMM=
golang.org/x/telemetry v0.0.0-20241106142447-58a1122356f5/go.mod h1:8nZWdGp9pq73ZI//QJyckMQab3yq7hoWi7SI0UIusVI=
golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc=
golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg=
google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=

@ -30,10 +30,12 @@ change in breaking ways as the telemetry integration is refined.
## Contributing ## Contributing
This repository uses Gerrit for code changes. To learn how to submit changes to This repository uses Gerrit for code changes. To learn how to submit changes to
this repository, see https://golang.org/doc/contribute.html. this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/telemetry.
The main issue tracker for the telemetry repository is located at The main issue tracker for the telemetry repository is located at
https://github.com/golang/go/issues. Prefix your issue with "x/telemetry:" in https://go.dev/issues. Prefix your issue with "x/telemetry:" in
the subject line, so it is easy to find. the subject line, so it is easy to find.
### Linting & Formatting ### Linting & Formatting

@ -341,7 +341,7 @@ func readFile(f *file) (*File, error) {
return nil, fmt.Errorf("counter has no mapped file") return nil, fmt.Errorf("counter has no mapped file")
} }
name := current.f.Name() name := current.f.Name()
data, err := os.ReadFile(name) data, err := ReadMapped(name)
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to read from file: %v", err) return nil, fmt.Errorf("failed to read from file: %v", err)
} }

2
vendor/modules.txt vendored

@ -94,7 +94,7 @@ golang.org/x/sync/errgroup
golang.org/x/sys/execabs golang.org/x/sys/execabs
golang.org/x/sys/unix golang.org/x/sys/unix
golang.org/x/sys/windows golang.org/x/sys/windows
# golang.org/x/telemetry v0.0.0-20241028140143-9c0d19e65ba0 # golang.org/x/telemetry v0.0.0-20241106142447-58a1122356f5
## explicit; go 1.21 ## explicit; go 1.21
golang.org/x/telemetry golang.org/x/telemetry
golang.org/x/telemetry/counter golang.org/x/telemetry/counter