this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

make fewer traces

+2 -3
+2 -3
carstore/bs.go
··· 454 454 } 455 455 456 456 func (cs *CarStore) iterateShardBlocks(ctx context.Context, sh *CarShard, cb func(blk blockformat.Block) error) error { 457 - ctx, span := otel.Tracer("carstore").Start(ctx, "iterateShardBlocks") 458 - defer span.End() 459 - 460 457 fi, err := os.Open(sh.Path) 461 458 if err != nil { 462 459 return err ··· 1417 1414 func (cs *CarStore) compactBucket(ctx context.Context, user models.Uid, b *compBucket, shardsById map[uint]CarShard, keep map[cid.Cid]bool) error { 1418 1415 ctx, span := otel.Tracer("carstore").Start(ctx, "compactBucket") 1419 1416 defer span.End() 1417 + 1418 + span.SetAttributes(attribute.Int("shards", len(b.shards))) 1420 1419 1421 1420 last := b.shards[len(b.shards)-1] 1422 1421 lastsh := shardsById[last.ID]