Skip to content

Provide API to customize bucket boundaries for individual value recorders #673

@fabian-braun

Description

@fabian-braun

Hi,

Currently it's only possible to customize histogram boundaries globally through ExporterBuilder::with_default_histogram_boundaries.

It would be great if customizing the boundaries for each specific value recorder was supported.

Something along the following lines

let recorder = global::meter("my_meter")
    .f64_value_recorder("my_recorder")
    .with_boundaries(vec![10.0, 50.0, 200.0]) // <-- not possible right now
    .init();

Would a contribution be welcome? Is there a workaround to obtain the same behavior (maybe through multiple exporters?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-metricsArea: issues related to metrics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions