-
Notifications
You must be signed in to change notification settings - Fork 778
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
Remove guage & add Observer metric instrument #498
Remove guage & add Observer metric instrument #498
Conversation
Interestingly, I'm seeing intermittent failures for the three metric tests locally. MeterSdk uses a ConcurrentDictionary to manage each metric type, using LabelSetSdk as the key which overrides GetHashCode to use a constructed string from the labels (eg label1=value1,label2=value2). The failure indicates the oder of the metric entries to be at fault. |
PS the tests were previously ignored. |
Figured out the problem - the assert statements are using indexes into the dictionary but it's not sorted. This means the order is not guranteed based on the Working on refactoring all three metric types' tests to not depend on order. |
The unit tests are now working as expected. |
@SergeyKanzhelev @cijothomas Ready for review 👍 |
Fixes #497.