Skip to content

Conversation

@lajp
Copy link

@lajp lajp commented Nov 6, 2025

It would be useful if the add and sub functions on Gauge would return the old value. Alternatively (and perhaps ideally), an API could be exposed to access the underlying atomic type from std.

This is a BREAKING CHANGE, let me know what you think.

@ti-chi-bot
Copy link

ti-chi-bot bot commented Nov 6, 2025

Welcome @lajp! It looks like this is your first PR to tikv/rust-prometheus 🎉

@lajp lajp force-pushed the atomic-return-old-value branch from ac47a57 to 009d603 Compare November 6, 2025 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant