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

Method ReadRange

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

ReadRange is for reading parts of large objects from the backend. There will be an attempt to retrieve this from cache if shouldCache is true. Cache key will be tenantID:blockID:offset:bufferLength

(ctx context.Context, name string, keypath KeyPath, offset uint64, buffer []byte, cacheInfo *CacheInfo)

Source from the content-addressed store, hash-verified

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
77 // Shutdown must be called when the Reader is finished and cleans up any associated resources.
78 Shutdown()
79}

Callers 15

ReadAtWithCacheMethod · 0.65
ValidateMethod · 0.65
CompleteMethod · 0.65
ReadAtWithCacheMethod · 0.65
ValidateMethod · 0.65
CompleteMethod · 0.65
ReadAtWithCacheMethod · 0.65
CompleteMethod · 0.65
ReadAtMethod · 0.65
ReadRangeMethod · 0.65
ReadRangeMethod · 0.65
TestCacheKeysFunction · 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 4

TestCacheKeysFunction · 0.52
TestHedgeFunction · 0.52
TestHedgeFunction · 0.52
TestReadWriteFunction · 0.52