You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in this comment, there's a bug in our evaluation of instrument identity in MetricStorageRegistry#register(..).
MetricStorageRegistry uses MetricDescriptor#equals(..) to determine if an existing metric storage should be used with a newly registered instrument. If yes, the new instrument's measurements will be merged with the existing. If no, a new storage is created and the instrument's measurements are associated with a new metric stream at collection.
I know of two things we're doing wrong:
If instruments are the same except for the case of a name, there should be a single metric stream exported, with the name of the first registered.
If instruments are the same except for advice, there should be a single metric stream exported, with the advice of the first registered.
The proof of the first issue is that the following test code fails:
As discussed in this comment, there's a bug in our evaluation of instrument identity in MetricStorageRegistry#register(..).
MetricStorageRegistry uses MetricDescriptor#equals(..) to determine if an existing metric storage should be used with a newly registered instrument. If yes, the new instrument's measurements will be merged with the existing. If no, a new storage is created and the instrument's measurements are associated with a new metric stream at collection.
I know of two things we're doing wrong:
The proof of the first issue is that the following test code fails:
Can produce similar test code to illustrate the second issue.
The text was updated successfully, but these errors were encountered: