@@ -41,9 +41,9 @@ All client metrics should be tagged with the following.
4141| http_client_status | HTTP status code as an integer (e.g. 200, 404, 500.), or "error" if no response status line was received |
4242| http_client_host | Value of the request Host header |
4343
44- ` http_client_method ` , ` http_client_path ` , ` http_client_host ` are set when an outgoing request
44+ ` http_client_method ` , ` http_client_path ` , ` http_client_host ` are set when an outgoing request
4545starts and are available in the context for the entire outgoing request processing.
46- ` http_client_status ` is set when an outgoing request finishes and is only available around the
46+ ` http_client_status ` is set when an outgoing request finishes and is only available around the
4747stats recorded at the end of request processing.
4848
4949` http_client_path ` and ` http_client_host ` might have high cardinality and you should be careful about using these
@@ -53,8 +53,8 @@ in views if your metrics backend cannot tolerate high-cardinality labels.
5353
5454The following set of views are considered minimum required to monitor client side performance:
5555
56- | View name | Measure | Aggregation | Tags |
57- | ---------------------------------------------| ---------------------------------------------| --------------| ---------------------------------------------------------- |
56+ | View name | Measure | Aggregation | Tags |
57+ | ---------------------------------------------| ---------------------------------------------| --------------| ----------------------------------------|
5858| opencensus.io/http/client/sent_bytes | opencensus.io/http/client/sent_bytes | distribution | http_client_method |
5959| opencensus.io/http/client/received_bytes | opencensus.io/http/client/received_bytes | distribution | http_client_method |
6060| opencensus.io/http/client/roundtrip_latency | opencensus.io/http/client/roundtrip_latency | distribution | http_client_method |
@@ -66,7 +66,7 @@ Server measures are recorded at the end of request processing.
6666
6767### Measures
6868
69- Server stats are recorded for each individual HTTP request, including for each redirect (followed or not).
69+ Server stats are recorded for each individual HTTP request, including for each redirect (followed or not).
7070
7171| Measure name | Unit | Description |
7272| ------------------------------------------| ------| -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
@@ -76,23 +76,29 @@ Server stats are recorded for each individual HTTP request, including for each r
7676
7777### Tags
7878
79- All server metrics should be tagged with the following.
79+ All server metrics should be tagged with the following.
8080
8181| Tag name | Description |
8282| --------------------| ---------------------------------------------------------------------|
8383| http_server_method | HTTP method, capitalized (i.e. GET, POST, PUT, DELETE, etc.) |
8484| http_server_path | URL path (not including query string) |
8585| http_server_status | HTTP server status code returned, as an integer e.g. 200, 404, 500. |
8686| http_server_host | Value of the request Host header |
87+ | http_server_route | Logical route of the handler of this request |
8788
88- ` http_server_method ` , ` http_server_path ` , ` http_server_host ` are set when an incoming request
89+ ` http_server_method ` , ` http_server_path ` , ` http_server_host ` are set when an incoming request
8990starts and are available in the context for the entire incoming request processing.
9091` http_server_status ` is set when an incoming request finishes and is only available around the stats
9192recorded at the end of request processing.
9293
9394` http_server_path ` and ` http_server_host ` are set by the client: you should be careful about using these
9495in views if your metrics backend cannot tolerate high-cardinality labels.
9596
97+ ` http_server_route ` should always be a low cardinality string representing the logical route or handler of the
98+ request. A reasonable interpretation of this would be the URL path pattern matched to handle the request,
99+ or an explicitly specified function name. Defaults to the empty string if no other suitable value is
100+ available.
101+
96102### Default views
97103
98104The following set of views are considered minimum required to monitor server side performance:
0 commit comments