1
0
mirror of https://github.com/golang/go synced 2024-11-19 11:14:47 -07:00
go/internal/telemetry/export/ocagent
Nathan Dias 0337d82405 ocagent: convert Int64Data and Float64Data metrics to *wire.Metric.
Histogram data still needs to be converted and
timestamps are not attached as they are not yet available.

What works:

* convertMetric will now convert Int64Data and Float64Data.

What does not work yet:

* Histogram64Int and Histogram64Float will still not be converted.
* StartTime and EndTime will not be attached to timeseries and points.
* MetricDescriptors will not have a unit attached.
* no labels will be attached to timeseries.

Updates golang/go#33819

Change-Id: I65f9af716ba6282e809d0a9d10777d70475e4c83
GitHub-Last-Rev: 10820a9971e1f4c0529fadc567b2533256c2e961
GitHub-Pull-Request: golang/tools#170
Reviewed-on: https://go-review.googlesource.com/c/tools/+/199857
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
2019-10-10 07:50:00 +00:00
..
wire internal/telemetry: clean up the exporter api 2019-08-15 23:56:12 +00:00
metrics_test.go ocagent: convert Int64Data and Float64Data metrics to *wire.Metric. 2019-10-10 07:50:00 +00:00
metrics.go ocagent: convert Int64Data and Float64Data metrics to *wire.Metric. 2019-10-10 07:50:00 +00:00
ocagent_test.go internal/telemetry: clean up the exporter api 2019-08-15 23:56:12 +00:00
ocagent.go ocagent: convert Int64Data and Float64Data metrics to *wire.Metric. 2019-10-10 07:50:00 +00:00