diff --git a/proxy_wasm_api.h b/proxy_wasm_api.h index 45acdb5..bf5c631 100644 --- a/proxy_wasm_api.h +++ b/proxy_wasm_api.h @@ -1712,7 +1712,7 @@ struct SimpleHistogram { template struct Counter : public MetricBase { static Counter *New(std::string_view name, MetricTagDescriptor... fieldnames); - Counter(std::string_view name, MetricTagDescriptor... descriptors) + Counter(std::string_view name, MetricTagDescriptor... descriptors) : Counter(std::string(name), std::vector({toMetricTag(descriptors)...})) { } @@ -1763,7 +1763,7 @@ inline Counter *Counter::New(std::string_view name, template struct Gauge : public MetricBase { static Gauge *New(std::string_view name, MetricTagDescriptor... fieldnames); - Gauge(std::string_view name, MetricTagDescriptor... descriptors) + Gauge(std::string_view name, MetricTagDescriptor... descriptors) : Gauge(std::string(name), std::vector({toMetricTag(descriptors)...})) {} SimpleGauge resolve(Tags... f) { @@ -1809,7 +1809,7 @@ inline Gauge *Gauge::New(std::string_view name, template struct Histogram : public MetricBase { static Histogram *New(std::string_view name, MetricTagDescriptor... fieldnames); - Histogram(std::string_view name, MetricTagDescriptor... descriptors) + Histogram(std::string_view name, MetricTagDescriptor... descriptors) : Histogram(std::string(name), std::vector({toMetricTag(descriptors)...})) {}