You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: stats/HTTP.md
+40-40Lines changed: 40 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@
3
3
Any particular library might provide only a subset of these measures/views/tags.
4
4
Check the language-specific documentation for the list of supported values.
5
5
6
-
There is no special support for multi-part HTTP requests and responses. These are just treated as one request.
6
+
There is no special support for multi-part HTTP requests and responses. These are just treated as a single request.
7
7
8
8
## Units
9
9
10
-
Units are encoded according to the case-sensitive abbreviations from the [Unified Code for Units of Measure](http://unitsofmeasure.org/ucum.html):
10
+
As always, units are encoded according to the case-sensitive abbreviations from the [Unified Code for Units of Measure](http://unitsofmeasure.org/ucum.html):
11
11
12
12
* Latencies are measures in float64 milliseconds, denoted "ms"
13
13
* Sizes are measured in bytes, denoted "By"
@@ -22,70 +22,70 @@ Buckets for distributions in default views are as follows:
22
22
23
23
### Measures
24
24
25
-
Client stats are recorded for each individual HTTP request, including for each redirect (followed or not).
25
+
Client stats are recorded for each individual HTTP request, including for each individual redirect (followed or not).
| opencensus.io/http/client/started_count | 1 | Number of all client requests started |
30
-
| opencensus.io/http/client/request_bytes | By | Total bytes sent in request body (not including headers). This is uncompressed bytes. |
31
-
| opencensus.io/http/client/response_bytes | By | Total bytes received in response bodies (not including headers but including error responses with bodies). Should be measured from actual bytes received and read, not the value of the Content-Length header. This is uncompressed bytes. Responses with no body should record 0 for this value. |
32
-
| opencensus.io/http/client/latency | ms | Time between first byte of request headers sent to last byte of response received, or terminal error |
| opencensus.io/http/client/sent_bytes | By | Total bytes sent in request body (not including headers). This is uncompressed bytes. |
30
+
| opencensus.io/http/client/received_bytes | By | Total bytes received in response bodies (not including headers but including error responses with bodies). Should be measured from actual bytes received and read, not the value of the Content-Length header. This is uncompressed bytes. Responses with no body should record 0 for this value. |
31
+
| opencensus.io/http/client/roundtrip_latency | ms | Time between first byte of request headers sent to last byte of response received, or terminal error |
33
32
34
33
### Tags
35
34
36
35
All client metrics should be tagged with the following.
| opencensus.io/http/server/started_count | 1 | Number of all server requests started. |
66
-
| opencensus.io/http/server/request_bytes | By | Total bytes received in request body (not including headers). This is uncompressed bytes. |
67
-
| opencensus.io/http/server/response_bytes | By | Total bytes sent in response bodies (not including headers but including error responses with bodies). Should be measured from actual bytes received and read, not the value of the Content-Length header. This is uncompressed bytes. Responses with no body should record 0 for this value. |
68
-
| opencensus.io/http/server/latency | ms | Time between first byte of request headers sent to last byte of response received, or terminal error |
65
+
| opencensus.io/http/server/received_bytes | By | Total bytes received in request body (not including headers). This is uncompressed bytes. |
66
+
| opencensus.io/http/server/sent_bytes | By | Total bytes sent in response bodies (not including headers but including error responses with bodies). Should be measured from actual bytes received and read, not the value of the Content-Length header. This is uncompressed bytes. Responses with no body should record 0 for this value. |
67
+
| opencensus.io/http/server/server_latency | ms | Time between first byte of request headers read to last byte of response sent, or terminal error |
69
68
70
69
### Tags
71
70
72
-
All server metrics should be tagged with the following.
71
+
All server metrics should be tagged with the following.
72
+
`http.server_method`, `http.server_path`, `http.server_host` are available in the context for the entire request processing.
73
+
`http.server_status` is only available around the stats recorded at the end of request processing.
0 commit comments