Skip to content

Proposal: replace labels.Compare with labels.Less #12455

@bboreham

Description

@bboreham

Proposal

The three-valued Compare is only ever used by Prometheus (outside of test code) as labels.Compare(...) < 0.

So we should change it to labels.Less and simplify the code.

This would have some impact on downstream projects.

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