Metrics should be accessed atomically as well as updated.
Currently, there are some useful metrics that we provide for plugins.
However, the metrics collection or updates might not be atomic in the code.
We need to ensure the metrics collection to be atomic in the codebase (i.e., use sync.Uint64 and other proper types for the values and ensure proper isolation).
Metrics should be accessed atomically as well as updated.
Currently, there are some useful metrics that we provide for plugins.
However, the metrics collection or updates might not be atomic in the code.
We need to ensure the metrics collection to be atomic in the codebase (i.e., use sync.Uint64 and other proper types for the values and ensure proper isolation).