Skip to content

Commit 5eaa840

Browse files
authored
fix: add cold stage to trace ls.... (#222)
1 parent 28eb37d commit 5eaa840

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

internal/commands/trace/list.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,8 @@ $ swctl trace ls --trace-id "321661b1-9a31-4e12-ad64-c8f6711f108d" --cold
101101
serviceInstanceID := ctx.String("instance-id")
102102
traceID := ctx.String("trace-id")
103103
tagStr := ctx.String("tags")
104-
cold := ctx.Bool("cold")
105104

106-
if cold && traceID == "" {
107-
return fmt.Errorf("cold storage must be queried with trace-id")
108-
}
109-
110-
if cold {
105+
if coldStage && traceID != "" {
111106
trace, err := trace.ColdTrace(ctx.Context, duration, traceID)
112107
if err != nil {
113108
return err

0 commit comments

Comments
 (0)