Skip to content

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

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? :-)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions