pub const GEN_AI_CLIENT_TOKEN_USAGE: &str = "gen_ai.client.token.usage";
Expand description
§Description
Measures number of input and output tokens used
§Metadata
Instrument: | histogram |
Unit: | {token} |
Status: | Experimental |
§Attributes
Name | Requirement |
---|---|
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::GEN_AI_TOKEN_TYPE | Required |
crate::attribute::SERVER_ADDRESS | Recommended |
crate::attribute::SERVER_PORT | Conditionally_required : If server.address is set. |