Skip to content

Support for a histogram buckets api #452

Open
@0xForerunner

Description

@0xForerunner

Doesn't look like this has been asked here before. One thing my team is looking for is the ability to specify histogram buckets when registering a histogram. This can currently be done at the exporter level, but there are a few reasons why this would be useful at the registration level. One reason being ease of configuration. A library should be able to suggest an appropriate bucket distribution that a consumer can then accept by default or override. This would also provide a unified interface for exporters to support which can help with making exporters more compatible with each other. Not sure exactly what the api should look like, perhaps:

describe_histogram!("my_hist", "histogram with exponential buckets").with_exp_buckets(0.1, 1.5, 25);

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-coreComponent: core functionality such as traits, etc.E-complexEffort: complex.T-requestType: request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions