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

Interface RawWriter

tempodb/backend/raw.go:53–62  ·  tempodb/backend/raw.go::RawWriter

RawWriter is a collection of methods to write data to tempodb backends

Source from the content-addressed store, hash-verified

51
52// RawWriter is a collection of methods to write data to tempodb backends
53type RawWriter interface {
54 // Write is for in memory data. shouldCache specifies whether or not caching should be attempted.
55 Write(ctx context.Context, name string, keypath KeyPath, data io.Reader, size int64, cacheInfo *CacheInfo) error
56 // Append starts or continues an Append job. Pass nil to AppendTracker to start a job.
57 Append(ctx context.Context, name string, keypath KeyPath, tracker AppendTracker, buffer []byte) (AppendTracker, error)
58 // CloseAppend closes any resources associated with the AppendTracker.
59 CloseAppend(ctx context.Context, tracker AppendTracker) error
60 // Delete deletes a file.
61 Delete(ctx context.Context, name string, keypath KeyPath, cacheInfo *CacheInfo) error
62}
63
64// RawReader is a collection of methods to read data from tempodb backends
65type RawReader interface {

Callers 29

CopyBlockFunction · 0.65
writeBlockMetaFunction · 0.65
AppendTraceMethod · 0.65
AddMethod · 0.65
CopyBlockFunction · 0.65
writeBlockMetaFunction · 0.65
makeTestFileFunction · 0.65
writeTraceToWalFunction · 0.65
testSameIDCompactionFunction · 0.65

Implementers 8

MockRawWritertempodb/backend/mocks.go
MockWritertempodb/backend/mocks.go
writertempodb/backend/raw.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

no test coverage detected