We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 681d031 commit 017470eCopy full SHA for 017470e
crates/synd_api/src/serve/layer/request_metrics.rs
@@ -57,8 +57,13 @@ where
57
let status = response.status().as_u16();
58
59
// https://opentelemetry.io/docs/specs/semconv/http/http-metrics/
60
- // should be http.server.request ?
61
- metric!(monotonic_counter.request = 1, path, status);
+ // Considiering the case of not found(404), recording the path as
+ // an attribute leads to an inability to control cardinality.
62
+ // Therefore, the path is not recorded.
63
+ metric!(
64
+ monotonic_counter.http.server.request = 1,
65
+ http.response.status.code = status
66
+ );
67
68
// instrument graphql latency
69
if path == "/graphql" && method == Method::POST {
0 commit comments