We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In this doc[1] section 9.1 please change the example from
AtomicInteger n = registry.gauge("numberGauge", new AtomicInteger(0)); n.set(1); n.set(2);
TO
AtomicInteger atomicInteger = new AtomicInteger(0); AtomicInteger n = registry.gauge("numberGauge", atomicInteger); n.set(1); n.set(2);
As above example does not work due to weakreference of new AtomicIntger(0). [1] https://micrometer.io/docs/concepts#_gauges
The text was updated successfully, but these errors were encountered:
@zeelshah90 The example you mentioned seems to be valid for me if you retain any reference to n. Am I missing something?
n
Sorry, something went wrong.
f566862
I have updated the example code with comments that hopefully clarify things. Let me know if anyone thinks further clarification is still necessary.
No branches or pull requests
In this doc[1] section 9.1 please change the example from
TO
As above example does not work due to weakreference of new AtomicIntger(0).
[1] https://micrometer.io/docs/concepts#_gauges
The text was updated successfully, but these errors were encountered: