trace

package
v0.0.0-...-08c2887 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func TraceIntoContext(ctx context.Context, name string) (context.Context, opentracing.Span, error)

opentracing从context获取,写入context,适用RPC

func TraceToHeader

func TraceToHeader(ctx context.Context, name string, header http.Header) (context.Context, opentracing.Span, error)

opentracing从context获取,写入http,适用将调用http

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL