Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeList ¶ added in v0.6.0
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 HttpOperationMetricsHandler ¶ added in v0.12.0
type Span ¶
type Span interface { GetAttributes() AttributeList // 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 // AddEvent adds an event to the Span with the provided name, timestamp and attributes. AddEvent(name string, ts time.Time, attributes map[string]interface{}) }
Span is an interface that accepts attributes 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.