Skip to content

model: compare sample value types before equality - #1006

Open
Rohilalala wants to merge 1 commit into
prometheus:mainfrom
Rohilalala:fix/sample-equal-value-types
Open

Rohilalala wants to merge 1 commit into
prometheus:mainfrom
Rohilalala:fix/sample-equal-value-types

Conversation

@Rohilalala

Copy link
Copy Markdown
Contributor

With the same metric and timestamp, Sample.Equal could report a float sample equal to a histogram sample. Reversing the arguments panicked. It now returns false in both directions.

@roidelapluie

Fix equality comparisons between float and histogram samples.

Signed-off-by: Aditya <205600203+Rohilalala@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant