Commit 31618916 authored by Dominik Charousset's avatar Dominik Charousset

Make argument order consistent

parent 72ea2a86
......@@ -462,7 +462,7 @@ public:
template <class ValueType = int64_t>
histogram<ValueType>*
histogram_singleton(string_view prefix, string_view name,
string_view helptext, span_t<ValueType> upper_bounds,
span_t<ValueType> upper_bounds, string_view helptext,
string_view unit = "1", bool is_sum = false) {
span_t<string_view> lbls;
auto fptr = histogram_family<ValueType>(prefix, name, lbls, upper_bounds,
......
......@@ -325,9 +325,9 @@ same pattern as the member functions for counters and gauges.
template <class ValueType = int64_t>
auto* histogram_singleton(string_view prefix, string_view name,
string_view helptext,
span<const ValueType> default_upper_bounds,
string_view unit = "1", bool is_sum = false);
string_view helptext, string_view unit = "1",
bool is_sum = false);
Compared to the member functions for counters and guages, histograms require one
addition argument for the default bucket upper bounds.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment