commit | 96ad48e4b0609d1c1d78ce953e1c3dbbd4337893 | [log] [tgz] |
---|---|---|
author | Nathan Dias <nathan.dias@orijtech.com> | Tue Nov 19 01:37:28 2019 -0600 |
committer | Emmanuel Odeke <emm.odeke@gmail.com> | Thu Nov 21 17:24:11 2019 +0000 |
tree | 9b98c6288c6f8441e085ef2d35e510a595adbc0f | |
parent | 82924fac8e733c6be0cd3aacb95b31d1d1e59ae0 [diff] |
internal/telemetry/export/ocagent: correctly marshal points to JSON This change adds a custom MarshalJSON func to Point so that values are formatted the same way jsonpb formats them. This allows the OpenCensus service to determine the concrete type of the point's value when unmarshaling. What works: * Points with Int64, Double, and Distribution values will marshal correctly. What does not work: * Points with Summary values will not marshal. Updates golang/go#33819 Change-Id: Ia76ebff4e0e2b6ff2ddf72b8d6187f49069d4cad Reviewed-on: https://go-review.googlesource.com/c/tools/+/207838 Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com> Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.