forked from prometheus/client_rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(encoding): add functions for individually encoding registry & EOF (
prometheus#205) All credits on the initial idea, implementation, and testing belong to @amunra, who is the original author of this PR prometheus#154. From the original PR description: Adds new `encode_registry` and `encode_eof` functions to allow encoding of parts of the response. This is useful when there are multiple registries at play, or when composing metrics for a process that embeds Rust as part of its logic whilst serving metrics to Prometheus outside of Rust. Fixes: prometheus#153 Refs: prometheus#154, prometheus#204 Co-authored-by: amunra <[email protected]> Signed-off-by: tyrone-wu <[email protected]> Signed-off-by: Max Inden <[email protected]>
- Loading branch information
Showing
3 changed files
with
200 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "prometheus-client" | ||
version = "0.22.2" | ||
version = "0.22.3" | ||
authors = ["Max Inden <[email protected]>"] | ||
edition = "2021" | ||
description = "Open Metrics client library allowing users to natively instrument applications." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters