Improve metric.hpp documentation
This commit is contained in:
@@ -164,7 +164,6 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Factory functions for creating metric families
|
// Factory functions for creating metric families
|
||||||
// IMPORTANT: name and help must point to static memory (string literals)
|
|
||||||
|
|
||||||
// Create counter family (monotonically increasing values)
|
// Create counter family (monotonically increasing values)
|
||||||
// ERROR: Aborts if family with same name is registered with different help
|
// ERROR: Aborts if family with same name is registered with different help
|
||||||
@@ -205,9 +204,9 @@ std::vector<double> exponential_buckets(double start, double factor, int count);
|
|||||||
// Returns chunks of Prometheus exposition format (includes # HELP and # TYPE
|
// Returns chunks of Prometheus exposition format (includes # HELP and # TYPE
|
||||||
// lines) Each string_view may contain multiple lines separated by '\n' String
|
// lines) Each string_view may contain multiple lines separated by '\n' String
|
||||||
// views are NOT null-terminated - use .size() for length All string data
|
// views are NOT null-terminated - use .size() for length All string data
|
||||||
// allocated in provided arena for zero-copy efficiency
|
// allocated in provided arena for zero-copy efficiency. The caller is
|
||||||
// TODO: Implement Prometheus text exposition format
|
// responsible for the arena's lifecycle. THREAD SAFETY: Serialized by global
|
||||||
// THREAD SAFETY: Serialized by global mutex - callbacks need not be thread-safe
|
// mutex - callbacks need not be thread-safe
|
||||||
std::span<std::string_view> render(ArenaAllocator &arena);
|
std::span<std::string_view> render(ArenaAllocator &arena);
|
||||||
|
|
||||||
// Validation functions for Prometheus compatibility
|
// Validation functions for Prometheus compatibility
|
||||||
|
|||||||
Reference in New Issue
Block a user