Documentation ¶
Overview ¶
Package codes defines the canonical error codes used by OpenTelemetry.
It conforms to [the OpenTelemetry specification](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#statuscanonicalcode).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code uint32
Code is an 32-bit representation of a status state.
func (*Code) MarshalJSON ¶
MarshalJSON returns c as the JSON encoding of c.
func (*Code) UnmarshalJSON ¶
UnmarshalJSON unmarshals b into the Code.
This is based on the functionality in the gRPC codes package: https://github.com/grpc/grpc-go/blob/bb64fee312b46ebee26be43364a7a966033521b1/codes/codes.go#L218-L244
Click to show internal directories.
Click to hide internal directories.