We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28eb37d commit 5eaa840Copy full SHA for 5eaa840
internal/commands/trace/list.go
@@ -101,13 +101,8 @@ $ swctl trace ls --trace-id "321661b1-9a31-4e12-ad64-c8f6711f108d" --cold
101
serviceInstanceID := ctx.String("instance-id")
102
traceID := ctx.String("trace-id")
103
tagStr := ctx.String("tags")
104
- cold := ctx.Bool("cold")
105
106
- if cold && traceID == "" {
107
- return fmt.Errorf("cold storage must be queried with trace-id")
108
- }
109
-
110
- if cold {
+ if coldStage && traceID != "" {
111
trace, err := trace.ColdTrace(ctx.Context, duration, traceID)
112
if err != nil {
113
return err
0 commit comments