Skip to main content

RPC_CLIENT_DURATION

Constant RPC_CLIENT_DURATION 

pub const RPC_CLIENT_DURATION: &'static str;
👎Deprecated:

{note: Replaced by rpc.client.call.duration with unit s., reason: uncategorized}

Available on crate features opentelemetry and semconv_experimental only.
Expand description

§Description

Deprecated, use rpc.client.call.duration instead. Note: the unit also changed from ms to s.

§Notes

While streaming RPCs may record this metric as start-of-batch to end-of-batch, it’s hard to interpret in practice.

Streaming: N/A

§Metadata

Instrument:histogram
Unit:ms
Status:Development

§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.