We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59491e9 commit a8400a2Copy full SHA for a8400a2
pkg/util/push/otlp.go
@@ -73,7 +73,7 @@ func OTLPHandler(maxRecvMsgSize int, overrides *validation.Overrides, cfg distri
73
}
74
75
// convert prompb to cortexpb TimeSeries
76
- tsList := []cortexpb.PreallocTimeseries(nil)
+ tsList := make([]cortexpb.PreallocTimeseries, 0, len(promTsList))
77
for _, v := range promTsList {
78
tsList = append(tsList, cortexpb.PreallocTimeseries{TimeSeries: &cortexpb.TimeSeries{
79
Labels: makeLabels(v.Labels),
0 commit comments