We could use opentelemetry-instrumentation-tower, from the open-telemetry/opentelemetry-rust-contrib repo, in order to handle the server metrics following OpenTelemetry conventions. We'd need to provide a FnRouteExtractor in order to keep the cardinality of the route attribute down, and we'd need to handle the janus_aggregator_responses_total counter separately.
Originally posted by @divergentdave in #4426 (comment)
We could use
opentelemetry-instrumentation-tower, from theopen-telemetry/opentelemetry-rust-contribrepo, in order to handle the server metrics following OpenTelemetry conventions. We'd need to provide aFnRouteExtractorin order to keep the cardinality of the route attribute down, and we'd need to handle thejanus_aggregator_responses_totalcounter separately.Originally posted by @divergentdave in #4426 (comment)