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

Method newCluster

pkg/drain/drain.go:85–94  ·  view source on GitHub ↗
(tokens []string)

Source from the content-addressed store, hash-verified

83}
84
85func (d *Drain) newCluster(tokens []string) *LogCluster {
86 d.clustersCounter++
87 return &LogCluster{
88 Tokens: slices.Clone(tokens),
89 id: d.clustersCounter,
90 Size: 1,
91 Stringer: d.tokenizer.Join,
92 ParamString: d.config.ParamString,
93 }
94}
95
96func (d *Drain) train(tokens []string) *LogCluster {
97 cluster := d.findMatchingClusterForTokens(tokens)

Callers 1

trainMethod · 0.95

Calls 1

CloneMethod · 0.80

Tested by

no test coverage detected