diff --git a/exporter/prometheusremotewriteexporter/exporter_test.go b/exporter/prometheusremotewriteexporter/exporter_test.go index ee92aa98c4f..c5533cfd7c9 100644 --- a/exporter/prometheusremotewriteexporter/exporter_test.go +++ b/exporter/prometheusremotewriteexporter/exporter_test.go @@ -522,16 +522,8 @@ func Test_pushMetrics(t *testing.T) { summary := dataold.MetricDataToOtlp(testdataold.GenerateMetricDataOneMetric()) summary[0].InstrumentationLibraryMetrics[0].Metrics[0] = &otlp.Metric{ - MetricDescriptor: getDescriptor("summary_test", summaryComb, validCombinations), - SummaryDataPoints: []*otlp.SummaryDataPoint{getSummaryDataPoint( - lbs1, - time1, - floatVal1, - uint64(intVal1), - []float64{floatVal1}, - []float64{floatVal2}, - ), - }, + MetricDescriptor: getDescriptor("summary_test", summaryComb, validCombinations), + SummaryDataPoints: []*otlp.SummaryDataPoint{}, } summaryBatch := pdatautil.MetricsFromOldInternalMetrics(dataold.MetricDataFromOtlp(summary)) diff --git a/exporter/prometheusremotewriteexporter/testutil_test.go b/exporter/prometheusremotewriteexporter/testutil_test.go index 2a173b7f372..f545b495c35 100644 --- a/exporter/prometheusremotewriteexporter/testutil_test.go +++ b/exporter/prometheusremotewriteexporter/testutil_test.go @@ -175,24 +175,6 @@ func getHistogramDataPoint(labels []*commonpb.StringKeyValue, ts uint64, sum flo } } -func getSummaryDataPoint(labels []*commonpb.StringKeyValue, ts uint64, sum float64, count uint64, pcts []float64, values []float64) *otlp.SummaryDataPoint { - pcs := []*otlp.SummaryDataPoint_ValueAtPercentile{} - for i, v := range values { - pcs = append(pcs, &otlp.SummaryDataPoint_ValueAtPercentile{ - Percentile: pcts[i], - Value: v, - }) - } - return &otlp.SummaryDataPoint{ - Labels: labels, - StartTimeUnixNano: 0, - TimeUnixNano: ts, - Count: count, - Sum: sum, - PercentileValues: pcs, - } -} - // Prometheus TimeSeries func getPromLabels(lbs ...string) []prompb.Label { pbLbs := prompb.Labels{