Documentation ¶
Index ¶
- Variables
- func Extract(ctx context.Context, req *http.Request) ([]kv.KeyValue, []kv.KeyValue, trace.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 = kv.Key("http.status") HTTPHeaderMIME = kv.Key("http.mime") HTTPRemoteAddr = kv.Key("http.remote") HTTPLocalAddr = kv.Key("http.local") )
View Source
var ( HostKey = kv.Key("http.host") URLKey = kv.Key("http.url") )
Functions ¶
func Extract ¶
func Extract(ctx context.Context, req *http.Request) ([]kv.KeyValue, []kv.KeyValue, trace.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.