#[test]
fn opentelemetry_otlp_uses_blocking_reqwest_client() {
    // opentelemetry-otlp lives in kylinbot-runtime (moved from root during workspace split)
    let manifest = include_str!("../../crates/kylinbot-runtime/Cargo.toml");
    let otlp_line = manifest
        .lines()
        .find(|line: &&str| line.trim_start().starts_with("opentelemetry-otlp ="))
        .expect("Cargo.toml must define opentelemetry-otlp dependency");

    assert!(
        otlp_line.contains("\"reqwest-blocking-client\""),
        "opentelemetry-otlp must include reqwest-blocking-client to avoid Tokio reactor panics"
    );
    assert!(
        !otlp_line.contains("\"reqwest-client\""),
        "opentelemetry-otlp must not include async reqwest-client in this runtime mode"
    );
}
