This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
Update example to reflect the change from ExportView to ExportMetrics. #14
Labels
bug
Something isn't working
Prometheus exporter has been updated to use
metric.reader
to read and exportMetric
instead ofview.Data
. The old interfaceExportView
is already a no-op:opencensus-go-exporter-prometheus/prometheus.go
Lines 108 to 110 in 71649c8
However in the example we still call the deprecated (and no-op) interface
view.RegisterExporter
andview.SetReportingPeriod
opencensus-go-exporter-prometheus/example/main.go
Line 46 in 71649c8
opencensus-go-exporter-prometheus/example/main.go
Line 70 in 71649c8
Example needs to be updated to reflect the change in metrics export.
/cc @yanweiguo
The text was updated successfully, but these errors were encountered: