Files
codex/codex-rs/otel/Cargo.toml
T
Dylan Hurd 617ad20df0 Remove the real-time wait from the OTLP headers helper timeout test (#62566)
## Why

The stalled-helper test waits 10 real seconds to check the timeout.

## What changed

Use Tokio's paused clock and a named pipe to keep the helper blocked.
Assert that it reports the expected timeout after exactly 10 seconds
of virtual time. Keep executable paths with spaces covered by a
separate test.

GitOrigin-RevId: ceabf0697576c7944708e467dd0f1a33fd644f42
2026-11-19 18:38:49 +00:00

82 lines
2.3 KiB
TOML

[package]
name = "codex-otel"
version.workspace = true
edition.workspace = true
license.workspace = true
[lib]
doctest = false
name = "codex_otel"
path = "src/lib.rs"
[lints]
workspace = true
[dependencies]
bytes = { workspace = true }
codex-http-client = { workspace = true }
opentelemetry-http = "0.31.0"
chrono = { workspace = true }
codex-utils-absolute-path = { workspace = true }
codex-utils-stream-parser = { workspace = true }
codex-utils-string = { workspace = true }
codex-utils-process = { workspace = true }
codex-http-headers-helper = { workspace = true }
codex-api = { workspace = true }
codex-protocol = { workspace = true }
eventsource-stream = { workspace = true }
gethostname = { workspace = true }
opentelemetry = { workspace = true, features = ["logs", "metrics", "trace"] }
opentelemetry-appender-tracing = { workspace = true }
opentelemetry-otlp = { workspace = true, features = [
"grpc-tonic",
"http-proto",
"http-json",
"logs",
"metrics",
"trace",
"reqwest-blocking-client",
"reqwest-rustls",
"tls",
"tls-roots",
"zstd-http",
]}
opentelemetry-semantic-conventions = { workspace = true }
opentelemetry_sdk = { workspace = true, features = [
"experimental_trace_batch_span_processor_with_async_runtime",
"experimental_metrics_custom_reader",
"logs",
"metrics",
"rt-tokio",
"testing",
"trace",
] }
http = { workspace = true }
os_info = { workspace = true }
reqwest = { workspace = true, features = ["blocking", "rustls-tls"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
strum_macros = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
tracing-opentelemetry = { workspace = true }
tracing-subscriber = { workspace = true }
[dev-dependencies]
opentelemetry_sdk = { workspace = true, features = [
"experimental_metrics_custom_reader",
"testing",
] }
pretty_assertions = { workspace = true }
rcgen = { workspace = true }
tempfile = { workspace = true }
[target.'cfg(unix)'.dev-dependencies]
codex-utils-cargo-bin = { workspace = true }
libc = { workspace = true }
tokio = { workspace = true, features = ["test-util"] }
[target.'cfg(target_os = "linux")'.dev-dependencies]
seccompiler = { workspace = true }