7#include <userver/utils/statistics/metric_tag_impl.hpp>
11namespace utils::statistics {
26template <
typename Metric>
27class MetricTag final {
30 template <
typename... Args>
31 explicit MetricTag(
const std::string& path, Args&&... args)
33 impl::RegisterMetricInfo(
34 key_, impl::MakeMetricFactory<Metric>(std::forward<Args>(args)...));
37 std::string GetPath()
const {
return key_.path; }
40 friend class MetricsStorage;
42 const impl::MetricKey key_;