Skip to content
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

Improve warning about Gauge re-registration in the docs #5617

Merged

Conversation

jonatan-ivanov
Copy link
Member

@jonatan-ivanov jonatan-ivanov commented Oct 31, 2024

Closes #5616

@jonatan-ivanov
Copy link
Member Author

Since it is on the hot-path, I'm not 100% sure about the warning but I think we should have the tests and document it.

Copy link

@keith-turner keith-turner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it is on the hot-path, I'm not 100% sure about the warning but I think we should have the tests and document it.

I like the warning because it makes it easier to see that information is being ignored. I only noticed information was being lost because I tested it in a system where I know what the gauges data should be. When meters are silently dropping data and its not know what the data should be, someone will take the data they see and not even know they are not seeing some of the data that was registered with the system.

docs/modules/ROOT/pages/concepts/gauges.adoc Show resolved Hide resolved
@shakuzen
Copy link
Member

shakuzen commented Nov 1, 2024

Since it is on the hot-path, I'm not 100% sure about the warning

We should see how much it costs with JMH benchmarks. I don't know if we already have a good benchmark that would measure the difference.

@shakuzen
Copy link
Member

@jonatan-ivanov do you want to separate out the documentation changes from the code changes so we can get the documentation changes into the release and work on benchmarking the code changes?

@jonatan-ivanov jonatan-ivanov changed the title Warn about Gauge re-registration Improve warning about Gauge re-registration in the docs Nov 14, 2024
@jonatan-ivanov jonatan-ivanov merged commit 301acbc into micrometer-metrics:1.12.x Nov 14, 2024
6 checks passed
@jonatan-ivanov jonatan-ivanov deleted the gauge-re-registration branch November 14, 2024 22:09
jonatan-ivanov added a commit that referenced this pull request Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gauges may be silently ignored when MeterFilters drop or transform tags
3 participants