-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prometheus example is panic (exporting histogram panic) #735
Comments
I modified the last sleep statement for a 5 second sleep to avoid the reported crash. A curl of the endpoint localhost:2222 does not produce any output. ~/opentelemetry-go/example/prometheus$ curl -vvv localhost:2222/
< HTTP/1.1 200 OK
|
I was able to reproduce this, though. See #736. |
SDK version
>= 0.5.0
No issue with 0.4.3.
Repro step
Run prometheus example - https://github.com/open-telemetry/opentelemetry-go/blob/master/example/prometheus/main.go
Browse localhost:2222 to see the metrics after 1 minute
Expected Result
It should show the list of metrics on the browser without any panic.
Actual Result
This panic caused because buckets.Counts was nil
opentelemetry-go/exporters/metric/prometheus/prometheus.go
Line 326 in 6bc14ff
Adding
DefaultHistogramBoundaries
setting to prometheus config did not work.The text was updated successfully, but these errors were encountered: