Skip to content

Provide Default Values for .add_metric(unit=) and .add_metric(value=) #1180

Closed as not planned
@ghost

Description

Is your feature request related to a problem? Please describe.
Approximately 2/3rd of my metrics are just posting singletons to a given metric, where unit=MetricUnit.Count and value=1. This results in repeating myself frequently.

Describe the solution you'd like
Provide default values for unit and value, such that I can .add_metric() by providing just a name= value.

Describe alternatives you've considered
A wrapper function that provides the same functionality might also be useful, but this seems like overkill compared to providing default values.

Additional context
This is the first time I've opened a Feature Request on a public repo... did I provide enough detail? :-)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions