Skip to content

Prometheus Registry is not thread safe #539

Open
@Sobeston

Description

@Sobeston

Tsan detected some data races.

Our Registry contains an arena_state: heap.ArenaAllocator. The registry internally locks. However, it then passes .allocator() into other metrics, which do not use this lock.

This requires some reorganisation to fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions