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

Method Write

modules/livestore/local_block.go:134–140  ·  view source on GitHub ↗
(ctx context.Context, w backend.Writer)

Source from the content-addressed store, hash-verified

132}
133
134func (c *LocalBlock) Write(ctx context.Context, w backend.Writer) error {
135 if err := encoding.CopyBlock(ctx, c.BlockMeta(), c.reader, w); err != nil {
136 return fmt.Errorf("error copying block from local to remote backend: %w", err)
137 }
138
139 return c.SetFlushed(ctx)
140}
141
142func (c *LocalBlock) SetDiskCache(ctx context.Context, cacheKey string, data []byte) error {
143 return c.writer.Write(ctx, cacheKey, (uuid.UUID)(c.BlockMeta().BlockID), c.BlockMeta().TenantID, data, nil)

Callers

nothing calls this directly

Calls 3

SetFlushedMethod · 0.95
CopyBlockFunction · 0.92
BlockMetaMethod · 0.65

Tested by

no test coverage detected