Constant RPC_SERVER_CALL_DURATION
pub const RPC_SERVER_CALL_DURATION: &'static str;Available on crate features
opentelemetry and semconv_experimental only.Expand description
§Description
Measures the duration of an incoming Remote Procedure Call (RPC).
§Notes
When this metric is reported alongside an RPC server span, the metric value SHOULD be the same as the RPC server span duration
§Metadata
| Instrument: | histogram |
| Unit: | s |
| Status: | Release_candidate |
§Attributes
| Name | Requirement |
|---|---|
crate::attribute::ERROR_TYPE | Conditionally_required: If and only if the operation failed. |
crate::attribute::RPC_METHOD | Conditionally_required: if available. |
crate::attribute::RPC_RESPONSE_STATUS_CODE | Conditionally_required: if available. |
crate::attribute::RPC_SYSTEM_NAME | Required |
crate::attribute::SERVER_ADDRESS | Opt_in |
crate::attribute::SERVER_PORT | Opt_in |