Skip to content

[Feature]: Provide direct access to a counter, i.e. without need for key/value. #2115

Closed
@etep

Description

@etep

Describe the solution you'd like:

In all the examples, incrementing a counter requires that the user supply a key value pair. This requires the counter to do a key value lookup to find the correct count to increment. What is expected is that there is a value somewhere in memory and the count is added to that (maybe atomically). What we have is a complicated code path to do some lookup followed by a simple increment. See, e.g., this.

Is it possible to directly access the "add" or "increment" method for a metric, i.e. without key/value lookup?

Related:

1740.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions