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

Method ToLabels

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

Source from the content-addressed store, hash-verified

8)
9
10func (e *ExemplarV2) ToLabels(b *labels.ScratchBuilder, symbols []string) (labels.Labels, error) {
11 return desymbolizeLabels(b, e.GetLabelsRefs(), symbols)
12}
13
14func (t *TimeSeriesV2) ToLabels(b *labels.ScratchBuilder, symbols []string) (labels.Labels, error) {
15 return desymbolizeLabels(b, t.GetLabelsRefs(), symbols)

Callers 4

Test_ExemplarV2ToLabelsFunction · 0.45
convertV2RequestToV1Function · 0.45
convertV2ToV1ExemplarsFunction · 0.45

Calls 2

GetLabelsRefsMethod · 0.95
desymbolizeLabelsFunction · 0.85

Tested by 2

Test_ExemplarV2ToLabelsFunction · 0.36