Files
codex/codex-rs/models-manager/Cargo.toml
T
aakash-oai 1640c74f1f Count remote model catalog ETag hint outcomes (#65110)
## What changed

Record one increment of `codex.remote_models.etag_hint` per comparison
when metrics are enabled. Set `result` to `match` or `mismatch` when the
current endpoint identity has a cached ETag, and to `no_baseline` when
there is no comparable cached ETag. Count the outcome even if the
subsequent refresh fails or authentication prevents a fetch.

## Testing

Add an in-memory metrics test that checks the exact counts and verifies
that a matching hint skips the fetch and an equal ETag from another
endpoint identity counts as `no_baseline`.

GitOrigin-RevId: 9570f415d43cf19bac8f4d82960466c86e883f73
2026-12-01 23:40:13 +00:00

34 lines
935 B
TOML

[package]
edition.workspace = true
license.workspace = true
name = "codex-models-manager"
version.workspace = true
[lib]
doctest = false
name = "codex_models_manager"
path = "src/lib.rs"
[lints]
workspace = true
[dependencies]
chrono = { workspace = true, features = ["serde"] }
codex-http-client = { workspace = true }
codex-login = { workspace = true }
codex-otel = { workspace = true }
codex-protocol = { workspace = true }
codex-prompts = { workspace = true }
codex-utils-cached-str = { workspace = true }
codex-utils-output-truncation = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
tokio = { workspace = true, features = ["fs", "sync", "time"] }
tracing = { workspace = true, features = ["log"] }
[dev-dependencies]
opentelemetry_sdk = { workspace = true }
pretty_assertions = { workspace = true }
serde_json = { workspace = true }
tempfile = { workspace = true }