-
Notifications
You must be signed in to change notification settings - Fork 1k
Log warning about "function" meter re-registration #6070
New issue
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
Log warning about "function" meter re-registration #6070
Conversation
314903b
to
37894df
Compare
micrometer-core/src/main/java/io/micrometer/core/instrument/MeterRegistry.java
Outdated
Show resolved
Hide resolved
I ran benchmarks with- and without the double-registration check. These tests were executed on an M4 MacBook Pro that has 10 performance + 4 efficiency cores and which ones are used for the benchmarks is not known.
CounterBenchmark (click to expand)CounterBenchmarkWith double-registration check (should be slower)
Without double-registration check (should be faster)
GaugeBenchmark (click to expand)GaugeBenchmarkWith double-registration check (should be slower)
Without double-registration check (should be faster)
|
micrometer-test/src/main/java/io/micrometer/core/tck/MeterRegistryCompatibilityKit.java
Show resolved
Hide resolved
…ivelyTwice() See micrometer-metrics#6070 (comment) Signed-off-by: Johnny Lim <[email protected]>
…ivelyTwice() (#6205) See #6070 (comment) Signed-off-by: Johnny Lim <[email protected]>
found by @shakuzen, see: #5757 (comment)
See gh-5616
See gh-5688
See gh-5617