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

Detailed Description

Storage of metrics registered with MetricTag<Metric>.

Definition in file metrics_storage.hpp.

Go to the source code of this file.

#include <memory>
#include <optional>
#include <string>
#include <vector>
#include <userver/utils/fast_pimpl.hpp>
#include <userver/utils/statistics/fwd.hpp>
#include <userver/utils/statistics/impl/metric_wrapper.hpp>
This graph shows which files directly or indirectly include this file:

Classes

class  utils::statistics::MetricsStorage
 Storage of metrics registered with MetricTag<Metric>. More...

Namespaces

namespace  utils
 General-purpose utilities used across userver libraries.
namespace  utils::statistics
 Statistics writers, metric types, and histogram helpers.

Functions

MetricsStoragePtr utils::statistics::MakeBoundMetricsStorage (Storage &storage, const std::optional< std::vector< std::string > > &allowed_metric_paths)
 Creates a MetricsStorage that considers only MetricTag<Metric> instances whose paths are listed in allowed_metric_paths (or all of them, if it is std::nullopt), and registers it in storage using the scoped utils::statistics::Storage::RegisterWriter overload, with an empty prefix.