Skip to content

Conversation

@nmooscisco
Copy link
Contributor

In order to enable callers to emit metrics in chunks, or to a small buffer to keep memory consumption flat, this patch introduces the render_to_write function, which can be used to stream metrics in chunks, avoiding buffering the entire set of metrics into a single string.

@nmooscisco nmooscisco force-pushed the moosnat/jj/push-oyumpuokkuro branch from d4183b6 to 2ee534b Compare November 18, 2025 19:20
In order to enable callers to emit metrics in chunks, or to a small
buffer to keep memory consumption flat, this patch introduces the
`render_to_write` function, which can be used to stream metrics in
chunks, avoiding buffering the entire set of metrics into a single
string.
@nmooscisco nmooscisco force-pushed the moosnat/jj/push-oyumpuokkuro branch from 2ee534b to b691105 Compare November 21, 2025 17:12
@tobz tobz added C-exporter Component: exporters such as Prometheus, TCP, etc. E-intermediate Effort: intermediate. T-enhancement Type: enhancement. labels Nov 27, 2025
@tobz tobz merged commit 65eff4f into metrics-rs:main Nov 28, 2025
14 checks passed
@tobz tobz added S-awaiting-release Status: awaiting a release to be considered fixed/implemented. and removed S-awaiting-release Status: awaiting a release to be considered fixed/implemented. labels Nov 28, 2025
@tobz
Copy link
Member

tobz commented Nov 28, 2025

Released in metrics-exporter-prometheus@v0.18.0.

Thanks again for your contribution!

@nmooscisco nmooscisco deleted the moosnat/jj/push-oyumpuokkuro branch December 2, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-exporter Component: exporters such as Prometheus, TCP, etc. E-intermediate Effort: intermediate. T-enhancement Type: enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants