# Functions
NewSpanAnnotatingClientTrace returns a httptrace.ClientTrace which annotates all emitted httptrace events on the provided Span.
NewSpanAnnotator returns a httptrace.ClientTrace which annotates all emitted httptrace events on the provided Span.
SetRoute sets the http_server_route tag to the given value.
TraceStatus is a utility to convert the HTTP status code to a trace.Status that represents the outcome as closely as possible.
WithRouteTag returns an http.Handler that records stats with the http_server_route tag set to the given value.
# Constants
Attributes recorded on the span for the requests.
Attributes recorded on the span for the requests.
Attributes recorded on the span for the requests.
Attributes recorded on the span for the requests.
Attributes recorded on the span for the requests.
Attributes recorded on the span for the requests.
# Variables
Package ochttp provides some convenience views for client measures.
Deprecated: Use ClientRoundtripLatency.
Deprecated: Use ClientRoundtripLatencyDistribution instead.
The following client HTTP measures are supported for use in custom views.
Package ochttp provides some convenience views for client measures.
Deprecated: Use ClientSentBytes.
Deprecated: Use ClientSentBytesDistribution.
Deprecated: Use a Count aggregation over one of the other client measures to achieve the same effect.
Deprecated: Use ClientCompletedCount instead.
Deprecated: No direct replacement, but see ClientCompletedCount.
Deprecated: Use ClientReceivedBytes.
Deprecated: Use ClientReceivedBytesDistribution instead.
Deprecated: Use ClientCompletedCount instead.
The following client HTTP measures are supported for use in custom views.
Package ochttp provides some convenience views for client measures.
The following client HTTP measures are supported for use in custom views.
Package ochttp provides some convenience views for client measures.
DefaultClientViews are the default client views provided by this package.
Default distributions used by views in this package.
DefaultServerViews are the default server views provided by this package.
Default distributions used by views in this package.
Host is the value of the HTTP Host header.
KeyClientHost is the value of the request Host header.
KeyClientMethod is the HTTP method, capitalized (i.e.
KeyClientPath is the URL path (not including query string).
KeyClientStatus is the HTTP status code as an integer (e.g.
KeyServerRoute is a low cardinality string representing the logical handler of the request.
Method is the HTTP method of the request, capitalized (GET, POST, etc.).
Path is the URL path (not including query string) in the request.
The following server HTTP measures are supported for use in custom views:.
Package ochttp provides some convenience views for server measures.
The following server HTTP measures are supported for use in custom views:.
Package ochttp provides some convenience views for server measures.
The following server HTTP measures are supported for use in custom views:.
Package ochttp provides some convenience views for server measures.
Package ochttp provides some convenience views for server measures.
The following server HTTP measures are supported for use in custom views:.
Package ochttp provides some convenience views for server measures.
Package ochttp provides some convenience views for server measures.
StatusCode is the numeric HTTP response status code, or "error" if a transport error occurred and no status code was read.