Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SpanFromHeader ¶
func SpanFromHeader(header http.Header, tracer opentracing.Tracer, name string, opts ...opentracing.StartSpanOption) (opentracing.Span, error)
SpanFromHeader 如果没在context中没有找到span,返回nil
func StartSpanFromHeader ¶
func StartSpanFromHeader(header http.Header, tracer opentracing.Tracer, name string, opts ...opentracing.StartSpanOption) (opentracing.Span, error)
StartSpanFromHeader returns a new span with the given operation name and options. If a span is found in the header, it will be used as the parent of the resulting span.
Types ¶
type Option ¶
type Option func(o *Options)
Option of tace
func WithResponseHandler ¶
WithResponseHandler of opentracing
func WithSkipperFunc ¶
func WithSkipperFunc(skipperFunc request.SkipperFunc) Option
WithSkipperFunc of opentracing
Click to show internal directories.
Click to hide internal directories.