39 lines
1.1 KiB
TOML
39 lines
1.1 KiB
TOML
|
|
[package]
|
||
|
|
edition = "2024"
|
||
|
|
name = "codex-otel"
|
||
|
|
version = { workspace = true }
|
||
|
|
|
||
|
|
[lib]
|
||
|
|
name = "codex_otel"
|
||
|
|
path = "src/lib.rs"
|
||
|
|
doctest = false
|
||
|
|
|
||
|
|
[lints]
|
||
|
|
workspace = true
|
||
|
|
|
||
|
|
[features]
|
||
|
|
# Compile-time gate for OTLP support; disabled by default.
|
||
|
|
# Downstream crates can enable via `features = ["otel"]`.
|
||
|
|
default = []
|
||
|
|
otel = [
|
||
|
|
"opentelemetry",
|
||
|
|
"opentelemetry_sdk",
|
||
|
|
"opentelemetry-otlp",
|
||
|
|
"tonic",
|
||
|
|
]
|
||
|
|
|
||
|
|
[dependencies]
|
||
|
|
codex-protocol = { path = "../protocol" }
|
||
|
|
chrono = { workspace = true }
|
||
|
|
tracing = { workspace = true }
|
||
|
|
opentelemetry = { workspace = true, features = ["logs"], optional = true }
|
||
|
|
opentelemetry_sdk = { workspace = true, features = ["logs", "rt-tokio"], optional = true }
|
||
|
|
opentelemetry-otlp = { workspace = true, features = ["grpc-tonic", "http-proto", "http-json", "reqwest", "reqwest-rustls"], optional = true }
|
||
|
|
opentelemetry-semantic-conventions = { workspace = true }
|
||
|
|
tonic = { workspace = true, optional = true }
|
||
|
|
serde = { workspace = true, features = ["derive"] }
|
||
|
|
strum_macros = { workspace = true }
|
||
|
|
reqwest = { workspace = true }
|
||
|
|
eventsource-stream = { workspace = true }
|
||
|
|
tokio = { workspace = true }
|
||
|
|
serde_json = { workspace = true }
|