Documentation ¶
Overview ¶
Package instrumentation provides a set of custom instruments for different providers.
Index ¶
Constants ¶
View Source
const ( // RequestSpanName is the name of the span created for each request. RequestSpanName = "http.request" // RequestEventName is the name of the event created for each request body. RequestEventName = "http.request.body" // ResponseEventName is the name of the event created for each response body. ResponseEventName = "http.response.body" )
Variables ¶
This section is empty.
Functions ¶
func NewCaptureTransport ¶
func NewCaptureTransport(underlyingTransport http.RoundTripper, handler metrics.Handler) http.RoundTripper
NewCaptureTransport returns a new http.Transport that captures requests and responses. TODO: add tests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.