httptrace

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 Inject

func Inject(ctx context.Context, req *http.Request)

func NewClientTrace

func NewClientTrace(ctx context.Context) *httptrace.ClientTrace

func W3C

Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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