Skip to content

Commit d728446

Browse files
committed
cp dines
1 parent fd63b7d commit d728446

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

pkg/convertor/convertor.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -678,16 +678,10 @@ func (c *overlaybdConvertor) applyOCIV1LayerInObd(
678678
afterApply func(root string) error, // do something after apply tar stream
679679
) (string, error) {
680680
startTime := time.Now()
681-
var parentIDAttr attribute.KeyValue
682-
if parentID != "" {
683-
parentIDAttr = attribute.String("parent_id", parentID)
684-
} else {
685-
parentIDAttr = attribute.String("parent_id", "<root>")
686-
}
687681

688682
ctx, span := tracer.Start(ctx, "applyOCIV1LayerInObd",
689683
trace.WithAttributes(
690-
parentIDAttr,
684+
attribute.String("parent_id", parentID),
691685
attribute.String("digest", desc.Digest.String()),
692686
attribute.Int64("size", desc.Size),
693687
attribute.String("media_type", desc.MediaType),

0 commit comments

Comments
 (0)