Skip to main content

classify

Function classify 

Source
pub fn classify(user_agent: Option<&str>) -> (ClientKind, &str)
Expand description

Classify by the leading product token, so the CLI’s own token wins over the SDK token it also carries. The version is returned only for a token we recognize, which keeps the client_version metric tag bounded by our own releases rather than by arbitrary strings.