Documentation
¶
Overview ¶
Package trace provides support for request tracing mechanisms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Span ¶
type Span interface { SetTag(key string, value interface{}) Log(event string) LogWithFields(event string, fields map[string]interface{}) Finish() }
Span represents request tracing span.
type Tracer ¶
type Tracer interface { StartSpan(name string) Span StartSpanFromContext(ctx context.Context, name string) (Span, context.Context) StartSpanWithParent(name string, parent Span) Span SpanFromContext(ctx context.Context) Span ContextWithSpan(ctx context.Context, span Span) context.Context InjectSpan(s Span, format interface{}, carrier interface{}) error ExtractSpan(name string, format interface{}, carrier interface{}) (Span, error) system.Disposer }
Tracer represents request tracing mechanism.
Directories
¶
Path | Synopsis |
---|---|
Package noop provides support for NOOP (No Operation) request tracing mechanisms.
|
Package noop provides support for NOOP (No Operation) request tracing mechanisms. |
Package zipkin provides support for opentracing zipkin framework.
|
Package zipkin provides support for opentracing zipkin framework. |