Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 578e5ad

Browse files
author
Bogdan Drutu
authored
Make the view definitions for http requests explicit. (#73)
1 parent d218d58 commit 578e5ad

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

http/stats.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@ All views, measures and tags should have the prefix: "opencensus.io/http/client"
2727
### Measures
2828

2929
Client stats are recorded for each individual HTTP request, including for each redirect (followed or not).
30-
Views are defined with the same name as the measure and the aggregation specified under Default View Aggregation.
3130

32-
| Measure suffix | Default View Aggregation | Description |
33-
|------------------------------------------|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
34-
| opencensus.io/http/client/request_count | sum | Number of all client requests started |
35-
| opencensus.io/http/client/request_bytes | distribution | Total bytes sent in request body (not including headers). This is uncompressed bytes. |
36-
| opencensus.io/http/client/response_bytes | distribution | 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. |
37-
| opencensus.io/http/client/latency | distribution | Time between first byte of request headers sent to last byte of response received, or terminal error |
31+
| Measure suffix | Description |
32+
|------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
33+
| opencensus.io/http/client/started_count | Number of all client requests started |
34+
| opencensus.io/http/client/request_bytes | Total bytes sent in request body (not including headers). This is uncompressed bytes. |
35+
| opencensus.io/http/client/response_bytes | 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. |
36+
| opencensus.io/http/client/latency | Time between first byte of request headers sent to last byte of response received, or terminal error |
3837

3938
### Tags
4039

@@ -49,12 +48,15 @@ All client metrics should be tagged with the following.
4948

5049
### Default views
5150

52-
The following default views are also defined:
51+
The following default views are defined:
5352

54-
| View suffix | Measure suffix | Aggregation | Tags |
55-
|---------------------------------------------------------|----------------|-------------|-------------|
56-
| opencensus.io/http/client/response_count_by_status_code | latency | count | status_code |
57-
| opencensus.io/http/client/request_count_by_method | latency | count | method |
53+
| View suffix | Measure suffix | Aggregation | Tags |
54+
|--------------------------------------------------------------------|----------------|--------------|----------------------|
55+
| opencensus.io/http/client/started_count | started_count | sum | method, path |
56+
| opencensus.io/http/client/request_bytes | request_bytes | distribution | method, path |
57+
| opencensus.io/http/client/response_bytes | response_bytes | distribution | method, path |
58+
| opencensus.io/http/client/latency | latency | distribution | method, path |
59+
| opencensus.io/http/client/finished_count | latency | count | method, path, status |
5860

5961
## Server
6062

0 commit comments

Comments
 (0)