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

Struct WriteableBlock

modules/blockbuilder/writeable_block.go:27–34  ·  view source on GitHub ↗

WriteableBlock is a trimmed down version of ingester.LocalBlock

Source from the content-addressed store, hash-verified

25
26// WriteableBlock is a trimmed down version of ingester.LocalBlock
27type WriteableBlock struct {
28 backendBlock common.BackendBlock
29
30 reader backend.Reader
31 writer backend.Writer
32
33 flushedTime atomic.Int64 // protecting flushedTime b/c it's accessed from the store on flush and from the ingester instance checking flush time
34}
35
36func NewWriteableBlock(backendBlock common.BackendBlock, r backend.Reader, w backend.Writer) tempodb.WriteableBlock {
37 return &WriteableBlock{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected