Documentation ¶
Index ¶
- func TraceFromHeader(ctx context.Context, name string, header http.Header) (context.Context, opentracing.Span, error)
- func TraceIntoContext(ctx context.Context, name string) (context.Context, opentracing.Span, error)
- func TraceToHeader(ctx context.Context, name string, header http.Header) (context.Context, opentracing.Span, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TraceFromHeader ¶
func TraceFromHeader(ctx context.Context, name string, header http.Header) (context.Context, opentracing.Span, error)
opentracing从header获取,写入context,适用获取http
func TraceIntoContext ¶
opentracing从context获取,写入context,适用RPC
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.