Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dimensional metrics for elasticsearch.events.processed metric #54

Merged
merged 8 commits into from
Aug 8, 2023
2 changes: 1 addition & 1 deletion appender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ func TestAppenderFlushMetric(t *testing.T) {
if !ignoreCount {
assert.Equal(t, count, int(dp.Count))
} else {
assert.Greater(t, int(dp.Count), count)
assert.GreaterOrEqual(t, int(dp.Count), count)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I debugged it locally with the main branch, and it also quite often emits 2 counts here, it should be ok to expect greater or equal than 2 if I'm not mistaken.

}
assert.Positive(t, dp.Sum)
assert.Equal(t, attrs, dp.Attributes)
Expand Down