@@ -257,7 +257,7 @@ func testCheckHistogramBucketSampling(t *testing.T, store *tags.Store) {
257257
258258 // ~3% error seen in this test case for sums (sum error is additive so it's always the worst)
259259 metrics .AssertSketchSeriesApproxEqual (t , & metrics.SketchSeries {
260- SketchMetadata : metrics.SketchMetadata {
260+ DistributionMetadata : metrics.DistributionMetadata {
261261 Name : "my.histogram" ,
262262 Tags : tagset .CompositeTagsFromSlice ([]string {"foo" , "bar" }),
263263 },
@@ -291,7 +291,7 @@ func testCheckHistogramBucketSampling(t *testing.T, store *tags.Store) {
291291 assert .Equal (t , 1 , len (flushed ))
292292 // ~3% error seen in this test case for sums (sum error is additive so it's always the worst)
293293 metrics .AssertSketchSeriesApproxEqual (t , & metrics.SketchSeries {
294- SketchMetadata : metrics.SketchMetadata {
294+ DistributionMetadata : metrics.DistributionMetadata {
295295 Name : "my.histogram" ,
296296 Tags : tagset .CompositeTagsFromSlice ([]string {"foo" , "bar" }),
297297 },
@@ -356,7 +356,7 @@ func testCheckHistogramBucketDontFlushFirstValue(t *testing.T, store *tags.Store
356356 assert .Equal (t , 1 , len (flushed ))
357357 // ~3% error seen in this test case for sums (sum error is additive so it's always the worst)
358358 metrics .AssertSketchSeriesApproxEqual (t , & metrics.SketchSeries {
359- SketchMetadata : metrics.SketchMetadata {
359+ DistributionMetadata : metrics.DistributionMetadata {
360360 Name : "my.histogram" ,
361361 Tags : tagset .CompositeTagsFromSlice ([]string {"foo" , "bar" }),
362362 },
@@ -427,7 +427,7 @@ func testCheckHistogramBucketReset(t *testing.T, store *tags.Store) {
427427
428428 require .Len (t , flushed , 2 )
429429 metrics .AssertSketchSeriesApproxEqual (t , & metrics.SketchSeries {
430- SketchMetadata : metrics.SketchMetadata {
430+ DistributionMetadata : metrics.DistributionMetadata {
431431 Name : "my.histogram" ,
432432 },
433433 Points : []metrics.SketchPoint {
@@ -436,7 +436,7 @@ func testCheckHistogramBucketReset(t *testing.T, store *tags.Store) {
436436 }, flushed [0 ], 0.01 )
437437
438438 metrics .AssertSketchSeriesApproxEqual (t , & metrics.SketchSeries {
439- SketchMetadata : metrics.SketchMetadata {
439+ DistributionMetadata : metrics.DistributionMetadata {
440440 Name : "my.histogram" ,
441441 },
442442 Points : []metrics.SketchPoint {
@@ -502,7 +502,7 @@ func testCheckHistogramBucketMultipleBucketsSampling(t *testing.T, store *tags.S
502502 expSketch .InsertInterpolate (10.0 , 20.0 , 4 )
503503 expSketch .InsertInterpolate (30.0 , 40.0 , 6 )
504504 metrics .AssertSketchSeriesApproxEqual (t , & metrics.SketchSeries {
505- SketchMetadata : metrics.SketchMetadata {
505+ DistributionMetadata : metrics.DistributionMetadata {
506506 Name : "my.histogram" ,
507507 Tags : tagset .CompositeTagsFromSlice ([]string {"foo" , "bar" }),
508508 },
@@ -545,7 +545,7 @@ func testCheckHistogramBucketMultipleBucketsSampling(t *testing.T, store *tags.S
545545 expSketch .InsertInterpolate (10.0 , 20.0 , 3 )
546546 expSketch .InsertInterpolate (30.0 , 40.0 , 5 )
547547 metrics .AssertSketchSeriesApproxEqual (t , & metrics.SketchSeries {
548- SketchMetadata : metrics.SketchMetadata {
548+ DistributionMetadata : metrics.DistributionMetadata {
549549 Name : "my.histogram" ,
550550 Tags : tagset .CompositeTagsFromSlice ([]string {"foo" , "bar" }),
551551 },
@@ -596,7 +596,7 @@ func testCheckHistogramBucketInfinityBucket(t *testing.T, store *tags.Store) {
596596
597597 // ~3% error seen in this test case for sums (sum error is additive so it's always the worst)
598598 metrics .AssertSketchSeriesApproxEqual (t , & metrics.SketchSeries {
599- SketchMetadata : metrics.SketchMetadata {
599+ DistributionMetadata : metrics.DistributionMetadata {
600600 Name : "my.histogram" ,
601601 Tags : tagset .CompositeTagsFromSlice ([]string {"foo" , "bar" }),
602602 },
@@ -635,7 +635,7 @@ func testCheckDistribution(t *testing.T, store *tags.Store) {
635635 expSketch .Insert (quantile .Default (), 1 )
636636
637637 metrics .AssertSketchSeriesEqual (t , & metrics.SketchSeries {
638- SketchMetadata : metrics.SketchMetadata {
638+ DistributionMetadata : metrics.DistributionMetadata {
639639 Name : "my.metric.name" ,
640640 Tags : tagset .CompositeTagsFromSlice ([]string {"foo" , "bar" }),
641641 },
0 commit comments