opentelemetry_semantic_conventions::metric

Constant GEN_AI_SERVER_REQUEST_DURATION

source
pub const GEN_AI_SERVER_REQUEST_DURATION: &str = "gen_ai.server.request.duration";
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.