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

Struct LocalBlock

modules/livestore/local_block.go:23–29  ·  view source on GitHub ↗

LocalBlock is a block stored in local storage. It can be searched and flushed to a remote backend, and permanently tracks the flushed time with a special file in the block.

Source from the content-addressed store, hash-verified

21// LocalBlock is a block stored in local storage. It can be searched and flushed to a remote backend, and
22// permanently tracks the flushed time with a special file in the block.
23type LocalBlock struct {
24 common.BackendBlock
25 reader backend.Reader
26 writer backend.Writer
27
28 flushedTime atomic.Int64 // protecting flushedTime because it's accessed concurrently
29}
30
31var (
32 _ common.Finder = (*LocalBlock)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected