MCPcopy
hub / github.com/grafana/tempo / getLabels

Function getLabels

pkg/traceql/engine_metrics_average.go:363–375  ·  view source on GitHub ↗
(vals []v1.KeyValue, skipKey string)

Source from the content-addressed store, hash-verified

361}
362
363func getLabels(vals []v1.KeyValue, skipKey string) Labels {
364 labels := make(Labels, 0, len(vals))
365 for _, l := range vals {
366 if skipKey != "" && l.Key == skipKey {
367 continue
368 }
369 labels = append(labels, Label{
370 Name: l.Key,
371 Value: StaticFromAnyValue(l.Value),
372 })
373 }
374 return labels
375}
376
377func (b *averageOverTimeSeriesAggregator) Results() SeriesSet {
378 ss := SeriesSet{}

Callers 1

CombineMethod · 0.85

Calls 1

StaticFromAnyValueFunction · 0.85

Tested by

no test coverage detected