镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
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