MCPcopy Create free account
hub / github.com/cortexproject/cortex / makeHistograms

Function makeHistograms

pkg/util/push/otlp.go:249–255  ·  view source on GitHub ↗
(in []prompb.Histogram)

Source from the content-addressed store, hash-verified

247}
248
249func makeHistograms(in []prompb.Histogram) []cortexpb.WrappedHistogram {
250 out := make([]cortexpb.WrappedHistogram, 0, len(in))
251 for _, h := range in {
252 out = append(out, cortexpb.WrappedHistogram{Histogram: cortexpb.HistogramPromProtoToHistogramProto(h)})
253 }
254 return out
255}
256
257func convertToMetricsAttributes(md pmetric.Metrics) pmetric.Metrics {
258 cloneMd := pmetric.NewMetrics()

Callers 1

OTLPHandlerFunction · 0.85

Calls 1

Tested by

no test coverage detected