Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoopTracing = &Tracing{ Tracer: opentracing.NoopTracer{}, closer: nil, }
NoopTracing is the tracing doing nothing.
Functions ¶
This section is empty.
Types ¶
type Span ¶
type Span interface {
// Tracer returns the Tracer that created this Span.
Tracer() opentracing.Tracer
// Context yields the SpanContext for this Span
Context() opentracing.SpanContext
// Finish finishes the span.
Finish()
// Cancel cancels the span, it should be called before Finish called.
// It will cancel all descendent spans.
Cancel()
// NewChild creates a child span.
NewChild(name string) Span
// NewChild creates a child span with start time.
NewChildWithStart(name string, startAt time.Time) Span
// SetName changes the span name.
SetName(name string)
// LogKV logs key:value for the span.
//
// The keys must all be strings. The values may be strings, numeric types,
// bools, Go error instances, or arbitrary structs.
//
// Example:
//
// span.LogKV(
// "event", "soft error",
// "type", "cache timeout",
// "waited.millis", 1500)
LogKV(kvs ...interface{})
}
Span is the span of the Tracing.
Click to show internal directories.
Click to hide internal directories.