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

Function MustNewSegmentDecoder

pkg/model/segment_decoder.go:47–54  ·  view source on GitHub ↗

MustNewSegmentDecoder creates a new encoding or it panics

(dataEncoding string)

Source from the content-addressed store, hash-verified

45
46// MustNewSegmentDecoder creates a new encoding or it panics
47func MustNewSegmentDecoder(dataEncoding string) SegmentDecoder {
48 decoder, err := NewSegmentDecoder(dataEncoding)
49 if err != nil {
50 panic(err)
51 }
52
53 return decoder
54}

Callers 15

TestDBFunction · 0.92
TestBlockShardingFunction · 0.92
testCompleteBlockFunction · 0.92
benchmarkCompleteBlockFunction · 0.92
TestNoCompactFlagFunction · 0.92
TestPollNotificationFunction · 0.92
testCompactionRoundtripFunction · 0.92
testSameIDCompactionFunction · 0.92
cutTestBlockWithTracesFunction · 0.92

Calls 1

NewSegmentDecoderFunction · 0.70

Tested by 15

TestDBFunction · 0.74
TestBlockShardingFunction · 0.74
testCompleteBlockFunction · 0.74
benchmarkCompleteBlockFunction · 0.74
TestNoCompactFlagFunction · 0.74
TestPollNotificationFunction · 0.74
testCompactionRoundtripFunction · 0.74
testSameIDCompactionFunction · 0.74
cutTestBlockWithTracesFunction · 0.74