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

Function newTestLabelLimiter

modules/generator/registry/test.go:14–16  ·  view source on GitHub ↗

newTestLabelLimiter returns a PerLabelLimiter with limiting disabled (maxCardinality=0).

()

Source from the content-addressed store, hash-verified

12
13// newTestLabelLimiter returns a PerLabelLimiter with limiting disabled (maxCardinality=0).
14func newTestLabelLimiter() *PerLabelLimiter {
15 return NewPerLabelLimiter("test", func(string) uint64 { return 0 }, 0)
16}
17
18// TestRegistry is a simple implementation of Registry intended for tests. It is not concurrent-safe.
19type TestRegistry struct {

Callers 6

TestLabelBuilderFunction · 0.85
NewLabelBuilderMethod · 0.85
buildTestLabelsFunction · 0.85

Calls 1

NewPerLabelLimiterFunction · 0.85

Tested by 5

TestLabelBuilderFunction · 0.68
buildTestLabelsFunction · 0.68