Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Field timeSeries[0].points[0].distributionValue had an invalid value: Distribution value has 15 |bucket_counts| fields, which is more than the 14 buckets allowed by the bucketing options. #98

Open
DazWilkin opened this issue Mar 12, 2019 · 3 comments

Comments

@DazWilkin
Copy link

DazWilkin commented Mar 12, 2019

Indirectly via trying the Stackdriver Exporter with OpenCensus agent:
census-instrumentation/opencensus-service#456 (comment)

There appears to be an issue using view.Distribution[s]:

Failed to export to Stackdriver: rpc error: code = InvalidArgument desc = Field timeSeries[0].points[0].distributionValue had an invalid value: Distribution value has 15 |bucket_counts| fields, which is more than the 14 buckets allowed by the bucketing options.

Regardless of the number of buckets chosen, the error will be:

Distribution values has {X} [bucket_counts| fields, which is more than the {X-1} buckets allowed by the bucketing options

Repro:
-- Use the Golang Stackdriver Exporter sample; fix its bugs (#99) :-(
-- Run it and observe the errors

GOOGLE_APPLICATION_CREDENTIALS=$PWD/secrets/opencensus.key.json \
go run github.com/DazWilkin/opencensus
2019/03/12 11:57:23 Setting Stackdriver default location failed: Get http://169.254.169.254/computeMetadata/v1/instance/zone: dial tcp 169.254.169.254:80: i/o timeout
> The quick brown fox jumps over the lazy dog
< THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG

> 2019/03/12 11:57:33 Failed to export to Stackdriver: rpc error: code = InvalidArgument desc = Field timeSeries[0].points[0].distributionValue had an invalid value: Distribution value has 16 |bucket_counts| fields, which is more than the 15 buckets allowed by the bucketing options.
How many times does the fox jump over the dog?
< HOW MANY TIMES DOES THE FOX JUMP OVER THE DOG?

> 2019/03/12 11:57:42 Failed to export to Stackdriver: rpc error: code = InvalidArgument desc = Field timeSeries[0].points[0].distributionValue had an invalid value: Distribution value has 15 |bucket_counts| fields, which is more than the 14 buckets allowed by the bucketing options.
@rghetia
Copy link
Contributor

rghetia commented Mar 16, 2019

workaround is to remove bucket with 0 bounds.

@DazWilkin
Copy link
Author

Thank you! I noticed removal of the "0" bucket in the code and had wondered whether that was a solution but forgot to try it. Thank you @rghetia

@Philmod
Copy link

Philmod commented Apr 29, 2020

Any plan to fix this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants