MCPcopy Index your code
hub / github.com/docker/cli / otelErrorType

Function otelErrorType

cli/command/telemetry_utils.go:133–139  ·  view source on GitHub ↗

otelErrorType returns an attribute for the error type based on the error category.

(err error)

Source from the content-addressed store, hash-verified

131
132// otelErrorType returns an attribute for the error type based on the error category.
133func 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.
142type statusError struct {

Callers 1

attributesFromErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…