opencensus: fix OpenCensus Spanner quickstart
Fixes
The import path of the stats exporter in
OpenCensus changed from
"go.opencensus.io/stats"
to
"go.opencensus.io/stats/view"
@@ -14,7 +14,7 @@ import (
"cloud.google.com/go/spanner"
"go.opencensus.io/exporter/stackdriver"
- "go.opencensus.io/stats"
+ "go.opencensus.io/stats/view"
"go.opencensus.io/trace"
"golang.org/x/net/context"
)
@@ -33,7 +33,7 @@ func main() {
if err != nil {
log.Fatal(err)
}
- stats.RegisterExporter(exporter)
+ view.RegisterExporter(exporter)
trace.RegisterExporter(exporter)
// This database must exist.
