Class for writing metrics.
Definition in file writer.hpp.
Go to the source code of this file.
#include <atomic>
#include <string_view>
#include <type_traits>
#include <userver/utils/statistics/histogram_view.hpp>
#include <userver/utils/statistics/labels.hpp>
#include <userver/utils/statistics/rate.hpp>
Classes | |
class | utils::statistics::Writer |
Class for writing metrics. More... | |
Namespaces | |
namespace | utils |
Utilities. | |
Functions | |
template<class Metric > | |
void | utils::statistics::DumpMetric (Writer &writer, const std::atomic< Metric > &m) |
Variables | |
template<class Metric > | |
constexpr bool | utils::statistics::kHasWriterSupport = impl::HasDumpMetricWriter<Metric>() |
Returns true, if the Metric could be written by utils::statistics::Writer. | |
void utils::statistics::DumpMetric | ( | Writer & | writer, |
const std::atomic< Metric > & | m ) |
Definition at line 197 of file writer.hpp.
|
inlineconstexpr |
Returns true, if the Metric
could be written by utils::statistics::Writer.
In other words, checks that the DumpMetric for the Metric
is provided or that the metric could be written without providing one.
Definition at line 46 of file writer.hpp.