use rs_zero::observability::{OtlpTraceConfig, TraceShutdownHandle, build_otlp_trace_config};
#[test]
fn otlp_config_and_shutdown_handle_are_testable_without_collector() {
let mut config = OtlpTraceConfig::default();
config
.resource
.insert("service.name".to_string(), "rs-zero-test".to_string());
let config = build_otlp_trace_config(config).expect("config");
assert_eq!(config.resource["service.name"], "rs-zero-test");
let handle = TraceShutdownHandle::installed();
handle.flush().expect("flush");
handle.shutdown().expect("shutdown");
}