feat: refactor sgclaw around zeroclaw compat runtime

This commit is contained in:
zyl
2026-03-26 16:23:31 +08:00
parent bca5b75801
commit ff0771a83f
1059 changed files with 409460 additions and 23 deletions

View File

@@ -0,0 +1,17 @@
#[test]
fn opentelemetry_otlp_uses_blocking_reqwest_client() {
let manifest = include_str!("../../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"
);
}