You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If that len(...) == 0 check was changed to a ... == nil, then I guess it should work (one would then be able to pass in an empty, but constructed slice of objectives).
The same is true for histograms (although a summary/histogram without quantiles/buckets would behave identically to each other):
This also updates all tests and examples to use explicitly set
objectives.
In v0.10, DefObjectives will be completely removed, and the default
Summary will have no objectives then.
Fixes#118
This also updates all tests and examples to use explicitly set
objectives.
In v0.10, DefObjectives will be completely removed, and the default
Summary will have no objectives then.
Fixes#118
From reading the code, it seems like it's not possible to create summaries without any quantiles at the moment:
https://github.com/prometheus/client_golang/blob/master/prometheus/summary.go#L183-L185
If that
len(...) == 0
check was changed to a... == nil
, then I guess it should work (one would then be able to pass in an empty, but constructed slice of objectives).The same is true for histograms (although a summary/histogram without quantiles/buckets would behave identically to each other):
https://github.com/prometheus/client_golang/blob/master/prometheus/histogram.go#L184-L186
The text was updated successfully, but these errors were encountered: