rama::telemetry::opentelemetry::semantic_conventions::metric

Constant GEN_AI_SERVER_REQUEST_DURATION

pub const GEN_AI_SERVER_REQUEST_DURATION: &'static str;
Expand description

§Description

Generative AI server request duration such as time-to-last byte or last output token

§Metadata

Instrument:histogram
Unit:s
Status:Experimental

§Attributes

NameRequirement
crate::attribute::ERROR_TYPEConditionally_required: if the operation ended in an error
crate::attribute::GEN_AI_OPERATION_NAMERequired
crate::attribute::GEN_AI_REQUEST_MODELRequired
crate::attribute::GEN_AI_RESPONSE_MODELRecommended
crate::attribute::GEN_AI_SYSTEMRequired
crate::attribute::SERVER_ADDRESSRecommended
crate::attribute::SERVER_PORTConditionally_required: If server.address is set.