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

Method Read

tempodb/backend/raw.go:73–73  ·  view source on GitHub ↗

Read is for streaming entire objects from the backend. There will be an attempt to retrieve this from cache if shouldCache is true.

(ctx context.Context, name string, keyPath KeyPath, cacheInfo *CacheInfo)

Source from the content-addressed store, hash-verified

71 Find(ctx context.Context, keypath KeyPath, f FindFunc) error
72 // Read is for streaming entire objects from the backend. There will be an attempt to retrieve this from cache if shouldCache is true.
73 Read(ctx context.Context, name string, keyPath KeyPath, cacheInfo *CacheInfo) (io.ReadCloser, int64, error)
74 // ReadRange is for reading parts of large objects from the backend.
75 // There will be an attempt to retrieve this from cache if shouldCache is true. Cache key will be tenantID:blockID:offset:bufferLength
76 ReadRange(ctx context.Context, name string, keypath KeyPath, offset uint64, buffer []byte, cacheInfo *CacheInfo) error

Callers 15

TestSearchByShortTraceIDFunction · 0.65
testAppendBlockStartEndFunction · 0.65
testIngestionSlackFunction · 0.65
runWALTestWithAppendModeFunction · 0.65
CopyBlockFunction · 0.65
checkBloomMethod · 0.65
checkIndexMethod · 0.65
findTraceByIDFunction · 0.65
estimateRowSizeFunction · 0.65
makeTestSpansFunction · 0.65

Implementers 6

MockRawReadertempodb/backend/mocks.go
readerWritertempodb/backend/cache/cache.go
Azuretempodb/backend/azure/azure.go
readerWritertempodb/backend/gcs/gcs.go
readerWritertempodb/backend/s3/s3.go
Backendtempodb/backend/local/local.go

Calls

no outgoing calls

Tested by 15

TestSearchByShortTraceIDFunction · 0.52
testAppendBlockStartEndFunction · 0.52
testIngestionSlackFunction · 0.52
runWALTestWithAppendModeFunction · 0.52
estimateRowSizeFunction · 0.52
makeTestSpansFunction · 0.52
createTestBlockFunction · 0.52
TestCountSpansFunction · 0.52
estimateRowSizeFunction · 0.52
makeTestSpansFunction · 0.52