Skip to content

Consider SummaryVec and HistogramVec methods to return concrete types rather than Observer/ObserverVec, or merge Summary and Histogram into one type #721

Open
@oakad

Description

@oakad

When applying labels to SummaryVec or HistogramVec, a "generic" Observer interface is returned. This is inconsistent with other *Vec types and does not appear to serve any useful practical purpose.

It will be substantially more convenient (especially, when all kinds of automation via reflection scenarios are concerned) if SummaryVec and HistogramVec simply returned the corresponding concrete interfaces implementing Summary and Histogram types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions