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

Function CopyBlock

tempodb/encoding/versioned.go:151–157  ·  view source on GitHub ↗

CopyBlock from one backend to another. It automatically chooses the encoding for the given block.

(ctx context.Context, meta *backend.BlockMeta, from backend.Reader, to backend.Writer)

Source from the content-addressed store, hash-verified

149
150// CopyBlock from one backend to another. It automatically chooses the encoding for the given block.
151func CopyBlock(ctx context.Context, meta *backend.BlockMeta, from backend.Reader, to backend.Writer) error {
152 v, err := FromVersion(meta.Version)
153 if err != nil {
154 return err
155 }
156 return v.CopyBlock(ctx, meta, from, to)
157}

Callers 2

WriteMethod · 0.92
WriteMethod · 0.92

Calls 2

FromVersionFunction · 0.85
CopyBlockMethod · 0.65

Tested by

no test coverage detected