parseTraceIDs converts a slice of hex trace ID strings to raw byte slices.
(hexIDs []string)
| 104 | |
| 105 | // parseTraceIDs converts a slice of hex trace ID strings to raw byte slices. |
| 106 | func parseTraceIDs(hexIDs []string) ([][]byte, error) { |
| 107 | traceIDs := make([][]byte, 0, len(hexIDs)) |
| 108 | for _, id := range hexIDs { |
| 109 | b, err := util.HexStringToTraceID(id) |
| 110 | if err != nil { |
| 111 | return nil, fmt.Errorf("invalid trace ID %q: %w", id, err) |
| 112 | } |
| 113 | traceIDs = append(traceIDs, b) |
| 114 | } |
| 115 | return traceIDs, nil |
| 116 | } |
| 117 | |
| 118 | // defaultSchedulerClientConfig returns a zero-value Config suitable for CLI use. |
| 119 | func defaultSchedulerClientConfig() schedulerclient.Config { |