Skip to main content

RPC_CLIENT_CALL_DURATION

Constant RPC_CLIENT_CALL_DURATION 

pub const RPC_CLIENT_CALL_DURATION: &'static str;
Available on crate features opentelemetry and semconv_experimental only.
Expand description

§Description

Measures the duration of an outgoing Remote Procedure Call (RPC).

§Notes

When this metric is reported alongside an RPC client span, the metric value SHOULD be the same as the RPC client span duration

§Metadata

Instrument:histogram
Unit:s
Status:Release_candidate

§Attributes

NameRequirement
crate::attribute::ERROR_TYPEConditionally_required: If and only if the operation failed.
crate::attribute::RPC_METHODConditionally_required: if available.
crate::attribute::RPC_RESPONSE_STATUS_CODEConditionally_required: if available.
crate::attribute::RPC_SYSTEM_NAMERequired
crate::attribute::SERVER_ADDRESSConditionally_required: If available.
crate::attribute::SERVER_PORTConditionally_required: if applicable and if server.address is set.