otelErrorType returns an attribute for the error type based on the error category.
(err error)
| 131 | |
| 132 | // otelErrorType returns an attribute for the error type based on the error category. |
| 133 | func otelErrorType(err error) string { |
| 134 | name := "generic" |
| 135 | if errors.Is(err, context.Canceled) { |
| 136 | name = "canceled" |
| 137 | } |
| 138 | return name |
| 139 | } |
| 140 | |
| 141 | // statusError reports an unsuccessful exit by a command. |
| 142 | type statusError struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…