Documentation ¶
Index ¶
- Variables
- func CustomTag(key string, val interface{}) opentracing.Tag
- func ExtractTraceID(ctx context.Context) string
- func FromIncomingContext(ctx context.Context) opentracing.StartSpanOption
- func HeaderExtractor(hdr map[string][]string) opentracing.StartSpanOption
- func HeaderInjector(ctx context.Context, hdr map[string][]string) context.Context
- func MetadataExtractor(md map[string][]string) opentracing.StartSpanOption
- func MetadataInjector(ctx context.Context, md metadata.MD) context.Context
- func SetGlobalTracer(tracer opentracing.Tracer)
- func SpanFromContext(ctx context.Context) opentracing.Span
- func StartSpanFromContext(ctx context.Context, op string, opts ...opentracing.StartSpanOption) (opentracing.Span, context.Context)
- func TagComponent(component string) opentracing.Tag
- func TagSpanKind(kind string) opentracing.Tag
- func TagSpanURL(url string) opentracing.Tag
- type MetadataReaderWriter
- type NullStartSpanOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // String ... String = log.String )
Functions ¶
func ExtractTraceID ¶ added in v0.3.6
ExtractTraceID HTTP使用request.Context,不要使用错了
func FromIncomingContext ¶
FromIncomingContext ...
func HeaderExtractor ¶
HeaderExtractor ...
func HeaderInjector ¶
HeaderInjector ...
func MetadataExtractor ¶
MetadataExtractor ...
func MetadataInjector ¶
MetadataInjector ...
func SpanFromContext ¶
SpanFromContext ...
Types ¶
type MetadataReaderWriter ¶
MetadataReaderWriter ...
func (MetadataReaderWriter) ForeachKey ¶
func (w MetadataReaderWriter) ForeachKey(handler func(key, val string) error) error
ForeachKey ...
type NullStartSpanOption ¶
type NullStartSpanOption struct{}
NullStartSpanOption ...
func (NullStartSpanOption) Apply ¶
func (sso NullStartSpanOption) Apply(options *opentracing.StartSpanOptions)
Apply ...
Click to show internal directories.
Click to hide internal directories.