Documentation
¶
Index ¶
- func NewContext(ctx context.Context, s zipkin.Span) context.Context
- func NewContextFromSpanContext(ctx context.Context, spanContext *model.SpanContext) context.Context
- func NewZapReporter() reporter.Reporter
- func SpanContextFromContext(ctx context.Context) *model.SpanContext
- func SpanFromContext(ctx context.Context) zipkin.Span
- type Tracer
- type ZapReporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContext ¶
NewContext 将Span写入context
func NewContextFromSpanContext ¶
NewContextFromSpanContext 将SpanContext写入context
func SpanContextFromContext ¶
func SpanContextFromContext(ctx context.Context) *model.SpanContext
SpanContextFromContext 从context中获取SpanContext
func SpanFromContext ¶
SpanFromContext 从context中获取Span
Types ¶
type ZapReporter ¶
Click to show internal directories.
Click to hide internal directories.