]> git.proxmox.com Git - ceph.git/blobdiff - 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
diff --git a/ceph/src/jaegertracing/opentelemetry-cpp/third_party/prometheus-cpp/core/include/prometheus/serializer.h b/ceph/src/jaegertracing/opentelemetry-cpp/third_party/prometheus-cpp/core/include/prometheus/serializer.h
new file mode 100644 (file)
index 0000000..c55ae09
--- /dev/null
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <iosfwd>
+#include <string>
+#include <vector>
+
+#include "prometheus/detail/core_export.h"
+#include "prometheus/metric_family.h"
+
+namespace prometheus {
+
+class PROMETHEUS_CPP_CORE_EXPORT Serializer {
+ public:
+  virtual ~Serializer() = default;
+  virtual std::string Serialize(const std::vector<MetricFamily>&) const;
+  virtual void Serialize(std::ostream& out,
+                         const std::vector<MetricFamily>& metrics) const = 0;
+};
+
+}  // namespace prometheus