Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestWithClientTrace ¶
RequestWithClientTrace adds httptrace.ClientTrace instrumentation into the request if there is an OpenTelemetry trace.Span previously registered in the request Context. This is modeled after the Zipkin transport tracing: https://github.com/openzipkin/zipkin-go/blob/v0.2.5/middleware/http/transport.go#L165
func Transport ¶
func Transport(rt http.RoundTripper) http.RoundTripper
Transport creates an http transport that will automatically trace all requests if there is an OpenTelemetry trace.Span previously registered in the request Context.
Example ¶
Output: Got Event: Connecting Got Event: DNS Start Got Event: DNS Done Got Event: Connect Start Got Event: Connect Done Got Event: TLS Handshake Start Got Event: TLS Handshake Done Got Event: Connected Got Event: Wrote Headers Got Event: Wrote Request Got Event: First Response Byte
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.