Files
codex/codex-rs/statsig/Cargo.toml
T
iceweasel-oai 598083ae58 Route Statsig requests through Codex's HTTP client (#63438)
## Why

Statsig requests need to honor the caller's proxy, TLS, and network policy
settings.

## What changed

Add a `codex-statsig` crate that adapts a caller-supplied
`RouteAwareClientPool` to the Statsig SDK's HTTP interface. The adapter
requests identity encoding, applies the SDK's timeout and optional
response body limit, and leaves HTTP status handling and retries to the SDK.

## Testing

Mock-server tests cover request forwarding, preservation of HTTP error
responses, response size limits, timeout error mapping, and policy denial
before a request reaches the server.

GitOrigin-RevId: 6e78435f1f93ee272977b2f0058afd8f485cf4e0
2026-11-23 21:05:43 +00:00

25 lines
555 B
TOML

[package]
name = "codex-statsig"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
[lib]
doctest = false
[lints]
workspace = true
[dependencies]
bytes = { workspace = true }
codex-http-client = { workspace = true }
http = { workspace = true }
oai-statsig-rust-client = { version = "0.1.0", default-features = false }
[dev-dependencies]
anyhow = { workspace = true }
pretty_assertions = { workspace = true }
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
wiremock = { workspace = true }