status

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package status provides status codes for trace spans.

Use this package to indicate the outcome of a traced operation. A span can have one of three status codes: Unset (default), Error (operation failed), or Success (operation succeeded).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code int

Code represents the status of a span.

const (
	// Unset is the default status code indicating no status has been set.
	Unset Code = iota

	// Error indicates the operation tracked by the span failed.
	Error

	// Success indicates the operation tracked by the span succeeded.
	Success
)

func (Code) String

func (c Code) String() string

String returns a string representation of the status code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL