[FOG] Assigning an Invalid Label in Labeled Metrics causes access to other elements to throw
Categories
(Toolkit :: Telemetry, defect)
Tracking
()
People
(Reporter: perry.mcmanis, Unassigned)
Details
When dealing with a labeled metric, there is a potential for loss of data in FOG if an invalid label has a value assigned to it.
I have observed this behavior in FOG only to date; in Glean rust and js I was not able to induce the problem. I have not tested this with every labeled type, but have observed it with labeled counter and labeled string
Expected behavior:
If a valid value is assigned to a valid label, it should be accessible even if values are assigned to other, invalid labels
Observed behavior:
If a valid value with a valid label exists, it is accessible. If a valid value is assigned to a valid label afterwards, calls to the valid label throw with a loss of data exception
Steps to reproduce:
- create a labeled string test metric
- assign a valid value to a valid label
- confirm this can be accessed normally
- assign a valid value to an invalid label
- attempt to access the valid label/value from 2.
- confirm NS_ERROR_LOSS_OF_SIGNIFICANT_DATA thrown
| Reporter | ||
Comment 1•4 years ago
|
||
This behavior is a consequence of an intended design choice. Overall error handling will be improved in the future that will likely see this behavior changed but for now this ticket will not get a 'fix'
Description
•