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

Method Strings

pkg/collector/distinct_string_collector.go:103–115  ·  view source on GitHub ↗

Strings returns the final list of distinct values collected and sorted.

()

Source from the content-addressed store, hash-verified

101
102// Strings returns the final list of distinct values collected and sorted.
103func (d *DistinctString) Strings() []string {
104 d.mtx.Lock()
105 defer d.mtx.Unlock()
106
107 ss := make([]string, 0, len(d.values))
108
109 for k := range d.values {
110 ss = append(ss, k)
111 }
112
113 sort.Strings(ss)
114 return ss
115}
116
117// Exceeded indicates if some values were lost because the maximum size limit was met.
118func (d *DistinctString) Exceeded() bool {

Callers 15

SearchTagValuesMethod · 0.95
SearchTagsMethod · 0.95
SearchTagValuesMethod · 0.95
SearchTagsBlocksMethod · 0.95
SearchTagsMethod · 0.95
SearchTagValuesMethod · 0.95
TestFetchTagNamesFunction · 0.45

Calls

no outgoing calls