Skip to content

Consider supporting constant native histograms #1617

Closed
@dashpole

Description

@dashpole

For OpenTelemetry's prometheus exporters, we would like to be able to export OTel exponential histograms: open-telemetry/opentelemetry-collector-contrib#33703, open-telemetry/opentelemetry-go#5777.

It would be helpful to have a NewConstNativeHistogram constructor, which mirrors the NewConstHistogram constructor. Unclear if we need all of the variants (Vec, with CT, etc).

Alternatively, we could directly implement the prometheus.Metric interface. I don't think it would be that hard to do, but I haven't tried. Feel free to close this issue if we should go that route instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions