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

Function OpenBlock

tempodb/encoding/versioned.go:128–134  ·  view source on GitHub ↗

OpenBlock for reading in the backend. It automatically chooses the encoding for the given block.

(meta *backend.BlockMeta, r backend.Reader)

Source from the content-addressed store, hash-verified

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) {
129 v, err := FromVersion(meta.Version)
130 if err != nil {
131 return nil, err
132 }
133 return v.OpenBlock(meta, r)
134}
135
136// CoalesceVersion resolves a block encoding version from a chain of version
137// strings ordered lowest to highest priority. Empty strings are skipped.

Callers 15

FindMethod · 0.92
SearchMethod · 0.92
SearchTagsMethod · 0.92
SearchTagValuesMethod · 0.92
SearchTagValuesV2Method · 0.92
FetchMethod · 0.92
FetchSpansMethod · 0.92
FetchTagValuesMethod · 0.92
FetchTagNamesMethod · 0.92
RedactBlockMethod · 0.92
reloadBlocksMethod · 0.92

Calls 2

FromVersionFunction · 0.85
OpenBlockMethod · 0.65

Tested by

no test coverage detected