Custom OpenCensus metrics not appearing on Stackdriver
问题 I'm trying to send custom metrics to Stackdriver from my Go application using OpenCensus. I've followed the guide, so the views and exporter are setup: import ( "context" "contrib.go.opencensus.io/exporter/stackdriver" "github.com/pkg/errors" "go.opencensus.io/stats" "go.opencensus.io/stats/view" "time" ) var ( apiRequestDurationMs = stats.Int64("api_request_duration", "API request duration in milliseconds", stats.UnitMilliseconds) ) func NewMetricsExporter() (*stackdriver.Exporter, error) {