Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Render grpc_status metric label as number (#2480)
Fixes linkerd/linkerd2#11449 The `grpc_status` metric label is rendered as a long form, human readable string value in the proxy metrics. For example: ``` response_total{direction="outbound", [...], classification="failure",grpc_status="Unknown error",error=""} 1 ``` This is because of the Display impl for Code. We explicitly convert to an i32 so this renders as a number instead: ``` response_total{direction="outbound", [...] ,classification="failure",grpc_status="2",error=""} 1 ``` Signed-off-by: Alex Leong <alex@buoyant.io>
- Loading branch information