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

Method Tombstone

tempodb/encoding/vparquet3/wal_block.go:521–531  ·  view source on GitHub ↗

Tombstone renames the block's meta.json to meta.deleted.json. See common.WALBlock.Tombstone for semantics.

()

Source from the content-addressed store, hash-verified

519// Tombstone renames the block's meta.json to meta.deleted.json.
520// See common.WALBlock.Tombstone for semantics.
521func (b *walBlock) Tombstone() error {
522 from := filepath.Join(b.walPath(), backend.MetaName)
523 to := filepath.Join(b.walPath(), backend.DeletedMetaName)
524 if err := os.Rename(from, to); err != nil {
525 if os.IsNotExist(err) {
526 return nil
527 }
528 return fmt.Errorf("failed to tombstone wal block %s: %w", b.meta.BlockID, err)
529 }
530 return nil
531}
532
533func (b *walBlock) FindTraceByID(ctx context.Context, id common.ID, opts common.SearchOptions) (*tempopb.TraceByIDResponse, error) {
534 trs := make([]*tempopb.Trace, 0)

Callers

nothing calls this directly

Calls 2

walPathMethod · 0.95
JoinMethod · 0.65

Tested by

no test coverage detected