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

Method ToLabels

pkg/cortexpb/compatv2.go:14–16  ·  view source on GitHub ↗
(b *labels.ScratchBuilder, symbols []string)

Source from the content-addressed store, hash-verified

12}
13
14func (t *TimeSeriesV2) ToLabels(b *labels.ScratchBuilder, symbols []string) (labels.Labels, error) {
15 return desymbolizeLabels(b, t.GetLabelsRefs(), symbols)
16}
17
18// desymbolizeLabels decodes label references, with given symbols to labels.
19// Copied from the Prometheus: https://github.com/prometheus/prometheus/blob/v3.7.2/prompb/io/prometheus/write/v2/symbols.go#L83

Callers

nothing calls this directly

Calls 2

GetLabelsRefsMethod · 0.95
desymbolizeLabelsFunction · 0.85

Tested by

no test coverage detected