String (telemetry/status.go)

opentelemetry-go · trace/internal/telemetry/status.go · go · Apache-2.0
analytics

Defines status codes and a status structure to represent the success or error state of a telemetry span.

// Source: https://github.com/open-telemetry/opentelemetry-go | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

package telemetry

// StatusCode is the status of a Span.
//
// For the semantics of status codes see
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status
type StatusCode int32

const (
	// StatusCodeUnset is the default status.
	StatusCodeUnset StatusCode = 0
	// StatusCodeOK is used when the Span has been validated by an Application
	// developer or Operator to have completed successfully.
	StatusCodeOK StatusCode = 1
	// StatusCodeEr

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key