Documentation ¶
Index ¶
Constants ¶
View Source
const OperationNameContextKey contextKey = 0
OperationNameContextKey specifies the operation name location within the context for instrumentation.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TimedClient ¶
type TimedClient struct {
// contains filtered or unexported fields
}
TimedClient instruments a request. It implements Requester.
func NewTimedClient ¶
func NewTimedClient(client Requester, collector instrument.Collector) *TimedClient
NewTimedClient creates a Requester that instruments requests on `client`.
Click to show internal directories.
Click to hide internal directories.