INNER CODE UNIT · Go
ocviews
prometheus-msteams/prometheus-msteams · cmd/server/main.go:425
func ocviews() []*view.View {
clientKeys := []tag.Key{
ochttp.KeyClientMethod, ochttp.KeyClientStatus, ochttp.KeyClientHost, ochttp.KeyClientPath,
}
serverKeys := []tag.Key{
ochttp.StatusCode, ochttp.Method, ochttp.Path,
}
return []*view.View{
// HTTP client metrics.
{
Name: "http/client/sent_bytes",
Measure: ochttp.ClientSentBytes,
Aggregation: view.Distribution(1024, 2048, 4096, 16384, 65536, 262144, 1048576, 4194304),
Description: "Total bytes sent in request body (not including headers), by HTTP method and response status",
TagKeys: clientKeys,
},
{
Name: "http/client/received_bytes",