This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
Distribution with zero buckets results in CreateTimeSeries 400 response #234
Labels
bug
Something isn't working
Please answer these questions before submitting a bug report.
What version of the Exporter are you using?
2fdcf7b
v0.12.7
What version of OpenCensus are you using?
9c377598961b706d1542bd2d84d538b5094d596e
v0.22.0
What version of Go are you using?
go version go1.12.12 darwin/amd64
What did you do?
Attempted to create a distribution metric and view and export to Stackdriver.
What did you expect to see?
Distribution stats uploaded and visible in Stackdriver.
What did you see instead?
400 errors for CreateTimeSeries on the API dashboard:
https://console.cloud.google.com/apis/api/monitoring.googleapis.com/metrics
... and the following logs:
2019/11/01 15:41:32.278782 stackdriver.go:421: Failed to export to Stackdriver: rpc error: code = InvalidArgument desc = Field timeSeries[1].points[0].distributionValue had an invalid value: Distribution |explicit_buckets.bounds| does not have at least one entry.
Additional context
Curious whether this is by design or not -- based on the documentation for
view.Distribution()
it's permissible to not specify any buckets:Is there a possible bug here where the
(-infinity, +infinity)
bucket isn't created when exporting to Stackdriver?The text was updated successfully, but these errors were encountered: