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

Function LabelsFromProto

pkg/traceql/engine_metrics.go:236–242  ·  view source on GitHub ↗
(ls []commonv1proto.KeyValue)

Source from the content-addressed store, hash-verified

234type Labels []Label
235
236func LabelsFromProto(ls []commonv1proto.KeyValue) Labels {
237 out := make(Labels, 0, len(ls))
238 for _, l := range ls {
239 out = append(out, Label{Name: l.Key, Value: StaticFromAnyValue(l.Value)})
240 }
241 return out
242}
243
244func LabelsFromArgs(args ...any) Labels {
245 if len(args)%2 != 0 {

Calls 1

StaticFromAnyValueFunction · 0.85