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

Function AllEncodingsForWrites

tempodb/encoding/versioned.go:117–125  ·  view source on GitHub ↗

AllEncodingsForWrites is the list of encodings that can create new blocks.

()

Source from the content-addressed store, hash-verified

115
116// AllEncodingsForWrites is the list of encodings that can create new blocks.
117func AllEncodingsForWrites() []VersionedEncoding {
118 var writeable []VersionedEncoding
119 for _, enc := range AllEncodings() {
120 if enc.WritesSupported() {
121 writeable = append(writeable, enc)
122 }
123 }
124 return writeable
125}
126
127// OpenBlock for reading in the backend. It automatically chooses the encoding for the given block.
128func OpenBlock(meta *backend.BlockMeta, r backend.Reader) (common.BackendBlock, error) {

Callers 15

TestCompleteBlockFunction · 0.92
BenchmarkCompleteBlockFunction · 0.92
TestCompactionRoundtripFunction · 0.92
TestSameIDCompactionFunction · 0.92
TestCompactWithConfigFunction · 0.92
BenchmarkCompactionFunction · 0.92
TestSearchCompleteBlockFunction · 0.92
TestSearchByShortTraceIDFunction · 0.92
TestRetainWithConfigFunction · 0.92

Calls 2

AllEncodingsFunction · 0.85
WritesSupportedMethod · 0.65

Tested by 15

TestCompleteBlockFunction · 0.74
BenchmarkCompleteBlockFunction · 0.74
TestCompactionRoundtripFunction · 0.74
TestSameIDCompactionFunction · 0.74
TestCompactWithConfigFunction · 0.74
BenchmarkCompactionFunction · 0.74
TestSearchCompleteBlockFunction · 0.74
TestSearchByShortTraceIDFunction · 0.74
TestRetainWithConfigFunction · 0.74