Download codex-rs/codex-client/src/telemetry.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-client/src/telemetry.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/codex-client/src/telemetry.rs
-
curl -L -o telemetry.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/codex-client/src/telemetry.rs
326 Bytes
| use codex_http_client::TransportError; | |
| use http::StatusCode; | |
| use std::time::Duration; | |
| /// API specific telemetry. | |
| pub trait RequestTelemetry: Send + Sync { | |
| fn on_request( | |
| &self, | |
| attempt: u64, | |
| status: Option<StatusCode>, | |
| error: Option<&TransportError>, | |
| duration: Duration, | |
| ); | |
| } | |