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

One more micrometer AsyncInstrumentRegistry fix #5118

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

mateuszrzeszutek
Copy link
Member

This is pretty much a continuation of #5106

This morning I realized that we can't ever remove the recorder callback (even if there are no measurements being recorded), because that way we'd lose the information that a particular async instrument was already created - and OTel Meter still remembers that, so the next time somebody would try to create a gauge (e.g.) with the same name they'd not get their metrics, and receive an error log from OTel SDK instead.

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

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

👍

@trask trask merged commit 262a873 into open-telemetry:main Jan 14, 2022
@mateuszrzeszutek mateuszrzeszutek deleted the one-more-micrometer-fix branch January 17, 2022 08:51
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
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.

Sporadic micrometer library test failure
2 participants