Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) // 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.