Documentation ¶
Index ¶
- Variables
- func Extract(ctx context.Context, req *http.Request) ([]core.KeyValue, []core.KeyValue, core.SpanContext)
- func Inject(ctx context.Context, req *http.Request)
- func NewClientTrace(ctx context.Context) *httptrace.ClientTrace
- func W3C(ctx context.Context, req *http.Request) (context.Context, *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HTTPStatus = key.New("http.status") HTTPHeaderMIME = key.New("http.mime") HTTPRemoteAddr = key.New("http.remote") HTTPLocalAddr = key.New("http.local") )
View Source
var ( HostKey = key.New("http.host") URLKey = key.New("http.url") )
Functions ¶
func Extract ¶
func Extract(ctx context.Context, req *http.Request) ([]core.KeyValue, []core.KeyValue, core.SpanContext)
Returns the Attributes, Context Entries, and SpanContext that were encoded by Inject.
func NewClientTrace ¶
func NewClientTrace(ctx context.Context) *httptrace.ClientTrace
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.