Skip to content

Make metrics more atomic #6761

@candiduslynx

Description

@candiduslynx

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions