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

Method CreateBlock

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

Whether this encoding can create new blocks, or is in deprecated read-only mode. CreateBlock with the given attributes and trace contents. BlockMeta is used as a container for many options. Required fields: * BlockID * TenantID * Encoding * StartTime * EndTime * TotalObjects

(ctx context.Context, cfg *common.BlockConfig, meta *backend.BlockMeta, i common.Iterator, r backend.Reader, to backend.Writer)

Source from the content-addressed store, hash-verified

40 // * EndTime
41 // * TotalObjects
42 CreateBlock(ctx context.Context, cfg *common.BlockConfig, meta *backend.BlockMeta, i common.Iterator, r backend.Reader, to backend.Writer) (*backend.BlockMeta, error)
43
44 // CopyBlock from one backend to another.
45 CopyBlock(ctx context.Context, meta *backend.BlockMeta, from backend.Reader, to backend.Writer) error

Callers 4

FlushMethod · 0.65
CreateBlockMethod · 0.65
completeBlockMethod · 0.65

Implementers 4

Encodingtempodb/encoding/vparquet4/encoding.go
Encodingtempodb/encoding/vparquet5/encoding.go
Encodingtempodb/encoding/vparquet3/encoding.go
Encodingtempodb/encoding/unsupported/encoding.

Calls

no outgoing calls

Tested by 1

CreateBlockMethod · 0.52