Skip to content

consider changing Timer, Counter, Gauge and Recorder to a value type. #101

@avolokhov

Description

@avolokhov

Currently Timer, Counter, Gauge and Recorder are immutable and don't serve as a storage for corresponding timer/counter etc. data. They serve only as a bridge to an actual <metricType>Handler classes.
Actual backends are only holding a registry of underlying -Handler and public API types are only stored in a user code. This likely means that in the usual use case Timer and counterparts won't be passed around a lot, and changing them to a value type will reduce allocations.

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