Skip to content

How to customize buckets for different histograms #1174

@lerouxrgd

Description

@lerouxrgd

In version 0.19 we could use:

impl AggregatorSelector for MyCustomSelector {
    fn aggregator_for(&self, descriptor: &Descriptor) -> Option<Arc<dyn Aggregator + Send + Sync>> {
        todo!("Something based on descriptor.name()")
    }
}

With version 0.20 the equivalent seems to be using AggregationSelector which only provides a InstrumentKind with much less information.

How can we now customize a histogram buckets using its name ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions