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