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

Method Write

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

Write is for in memory data. cacheInfo contains information to make a caching decision.

(ctx context.Context, name string, blockID uuid.UUID, tenantID string, buffer []byte, cacheInfo *CacheInfo)

Source from the content-addressed store, hash-verified

42type Writer interface {
43 // Write is for in memory data. cacheInfo contains information to make a caching decision.
44 Write(ctx context.Context, name string, blockID uuid.UUID, tenantID string, buffer []byte, cacheInfo *CacheInfo) error
45 // StreamWriter is for larger data payloads streamed through an io.Reader. It is expected this will _not_ be cached.
46 StreamWriter(ctx context.Context, name string, blockID uuid.UUID, tenantID string, data io.Reader, size int64) error
47 // WriteBlockMeta writes a block meta to its blocks

Callers 4

marshalMethod · 0.95
TestWriterFunction · 0.95
AppendMethod · 0.95

Calls

no outgoing calls

Tested by 2

TestWriterFunction · 0.76