internal/dcensus: use method, not route, for request_count metric
Request count is tagged by method, not by route.
Fixes b/157404347.
Fixes b/157404939.
@@ -202,8 +202,8 @@ var (
}
ServerRequestCount = &view.View{
Name: "go-discovery/http/server/request_count",
- Description: "Count of HTTP requests started by ServerRoute",
- TagKeys: []tag.Key{ochttp.KeyServerRoute},
+ Description: "Count of HTTP requests started by Method",
+ TagKeys: []tag.Key{ochttp.Method},
Measure: ochttp.ServerRequestCount,
Aggregation: view.Count(),
}
