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
Name | Requirement |
---|---|
crate::attribute::ERROR_TYPE | Conditionally_required : if the operation ended in an error |
crate::attribute::GEN_AI_OPERATION_NAME | Required |
crate::attribute::GEN_AI_REQUEST_MODEL | Required |
crate::attribute::GEN_AI_RESPONSE_MODEL | Recommended |
crate::attribute::GEN_AI_SYSTEM | Required |
crate::attribute::SERVER_ADDRESS | Recommended |
crate::attribute::SERVER_PORT | Conditionally_required : If server.address is set. |