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

output/cloudv2: Compact histogram #3169

Merged
merged 8 commits into from
Jul 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use the constructor
  • Loading branch information
codebien committed Jul 7, 2023
commit 1ec8c978e2b5af6fe35a8eab65de888d3af4b1f1
10 changes: 1 addition & 9 deletions output/cloud/expv2/sink_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package expv2

import (
"math"
"testing"

"github.com/stretchr/testify/assert"
Expand All @@ -17,14 +16,7 @@ func TestNewSink(t *testing.T) {
{metrics.Counter, &counter{}},
{metrics.Gauge, &gauge{}},
{metrics.Rate, &rate{}},
{
metrics.Trend,
&histogram{
Buckets: map[uint32]uint32{},
Max: -math.MaxFloat64,
Min: math.MaxFloat64,
},
},
{metrics.Trend, newHistogram()},
}
for _, tc := range tests {
assert.Equal(t, tc.exp, newMetricValue(tc.mt))
Expand Down