pub fn build_grpc_trace_layer(
span: Span,
) -> TraceLayer<SharedClassifier<GrpcErrorsAsFailures>, impl Fn(&Request<Body>) -> Span + Clone, impl Fn(&Request<Body>, &Span) + Clone, impl Fn(&Response<BoxBody>, Duration, &Span) + Clone, (), (), ()>
Expand description
Builds a [TraceLayer] configured for a gRPC server.
This layer emits gPRC specific telemetry for messages received/sent and handler duration.