opentelemetry_semantic_conventions::metric

Constant GEN_AI_CLIENT_OPERATION_DURATION

Source
pub const GEN_AI_CLIENT_OPERATION_DURATION: &str = "gen_ai.client.operation.duration";
Expand description

§Description

GenAI operation duration

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