You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
153651: rpc, server: add DRPC metrics server interceptor r=cthumuluru-crdb a=Nukitt
Previously, there was no support for metrics interceptor in
DRPC, and capturing drpc metrics wouldn't be possible.
In this PR, we add metrics server interceptor support in DRPC and
reuse the `rpc_server_request_duration_nanos` metric
for both gRPC and DRPC since the metric reflects server-side
duration agnostic of transport and interceptor chains are not expected
to differ materially in practice. When differentiation is needed, it
can be correlated with other metadata. This way we can observe both
gRPC and DRPC latency through interceptors.
Since this metric is behind a cluster setting, we also had to
change the key of the metric to `server.rpc.request_metrics.enabled`
so that it can be related to both the rpc framework and set an alias
as its retired name `server.grpc.request_metrics.enabled`.
Epic: CRDB-49359Fixes: #144373
Release note: None
Co-authored-by: Nukitt <nukit.tailor@cockroachlabs.com>
0 commit comments