]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/prometheus-cpp/core/include/prometheus/serializer.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / third_party / prometheus-cpp / core / include / prometheus / serializer.h
1 #pragma once
2
3 #include <iosfwd>
4 #include <string>
5 #include <vector>
6
7 #include "prometheus/detail/core_export.h"
8 #include "prometheus/metric_family.h"
9
10 namespace prometheus {
11
12 class PROMETHEUS_CPP_CORE_EXPORT Serializer {
13 public:
14 virtual ~Serializer() = default;
15 virtual std::string Serialize(const std::vector<MetricFamily>&) const;
16 virtual void Serialize(std::ostream& out,
17 const std::vector<MetricFamily>& metrics) const = 0;
18 };
19
20 } // namespace prometheus