-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Expand RecordingInstrucments to support collection of observers #112195
Expand RecordingInstrucments to support collection of observers #112195
Conversation
The support is needed for RecordingInstruments to be used in tests for guages with a collection of observers. Relates: elastic#110630
Pinging @elastic/es-core-infra (Team:Core/Infra) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this! A couple of thoughts:
- it seems the collection variants of
registerLongsAsyncCounter
andregisterDoubleAsyncCounter
are still not handled; can you add that? - it also seems we have some duplication:
RecordingDoubleCounter
andRecordingAsyncDoubleCounter
are identical. I think we can remove the second and just keep the former - similarly, I think we don't need both
RecordingAsyncLongCounter
andRecordingLongCounter
- it's probably better to change them to be like the double counter.
…er-registry-for-observer-collection
@ldematte Thanks for the review.
Yep pushed b9c0bd0
The two classes are quite different imo. The former is a synchronous counter with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; dont' worry about the (maybe) duplicated classes, I can follow up with some cleanup if needed. Thanks!
…tic#112195) The support is needed for RecordingInstruments to be used in tests for guages with a collection of observers. Relates: elastic#110630
The support is needed for RecordingInstruments to be used in tests for guages with a collection of observers.
Relates: #110630