userver: userver/utils/statistics/writer.hpp File Reference
Loading...
Searching...
No Matches
writer.hpp File Reference

Detailed Description

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/impl/internal_tag.hpp>
#include <userver/utils/statistics/histogram_view.hpp>
#include <userver/utils/statistics/labels.hpp>
#include <userver/utils/statistics/rate.hpp>
+ This graph shows which files directly or indirectly include this file:

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.
 

Function Documentation

◆ DumpMetric()

template<class Metric >
void utils::statistics::DumpMetric ( Writer & writer,
const std::atomic< Metric > & m )

Definition at line 216 of file writer.hpp.

Variable Documentation

◆ kHasWriterSupport

template<class Metric >
constexpr bool utils::statistics::kHasWriterSupport = impl::HasDumpMetricWriter<Metric>()
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 45 of file writer.hpp.