When using the Stackdriver exporter and the basic setup, I get this repeatedly.
Failed to export to Stackdriver: rpc error: code = InvalidArgument desc = Field timeSeries[4].points[0].distributionValue had an invalid value: Distribution value has 32 |bucket_counts| fields, which is more than the 31 buckets allowed by the bucketing options.
I'm not doing anything custom - here's my setup
ocsql.RegisterAllViews()
ocsql.RecordStats(db, 5*time.Second)