Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶ added in v0.5.0
type Code uint32
const ( // Unset is the default status code. StatusCodeUnset Code = 0 // Error indicates the operation contains an error. StatusCodeError Code = 1 // Ok indicates operation has been validated by an Application developers // or Operator to have completed successfully, or contain no error. StatusCodeOk Code = 2 )
type Span ¶
type Span interface { // SetAttribute sets an attribute for the span. SetAttribute(key string, value interface{}) // SetError sets an error for the span. SetError(err error) // SetStatus sets the status of the Span in the form of a code and a // description. SetStatus(code Code, description string) // IsNoop tells whether the span is noop or not, useful for avoiding // expensive recording. IsNoop() bool }
Span is an interface that accept attributed and can be distinguished as noop
type SpanFromContext ¶
SpanFromContext retrieves the existing span from a context
type SpanKind ¶
type SpanKind string
SpanKind represents the span kind, either Client, Server, Producer, Consumer or undertermine
type SpanOptions ¶
SpanOptions describes the options for starting a span
Click to show internal directories.
Click to hide internal directories.