client_rust icon indicating copy to clipboard operation
client_rust copied to clipboard

feat(encoding): add functions for individually encoding registry & EOF

Open tyrone-wu opened this issue 1 year ago • 1 comments

Note: All credits for the PR, from the initial idea, implementation, and testing, belong to @amunra who is the original author of this PR and #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: #153 Refs: #154, #204

Thank you @amunra! 😸

tyrone-wu avatar Jun 27 '24 04:06 tyrone-wu

Cargo.toml and CHANGELOG.md are updated now. 😃

tyrone-wu avatar Jul 03 '24 16:07 tyrone-wu