Enable Rig's built-in tracing spans (model, token usage, cache hits, latency) via tracing-subscriber, filterable through RUST_LOG and defaulting to info level. Logs write to stderr so stdout stays reserved for program output. Standardizes the remaining ad-hoc println! diagnostics (server startup, per-iteration revision progress, non-convergence) into structured tracing events at appropriate levels.
14 lines
375 B
TOML
14 lines
375 B
TOML
[package]
|
|
name = "doubleo7"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.104"
|
|
reqwest = "0.12"
|
|
rig-core = { git = "https://github.com/0xPlaygrounds/rig", branch = "main" }
|
|
serde = "1.0.229"
|
|
tokio = { version = "1.53.1", features = ["full"] }
|
|
toml = "1.1.4+spec-1.1.0"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
|