agent-client-protocol-conductor 0.11.1

Conductor for orchestrating Agent Client Protocol proxy chains
Documentation
/// Initialize tracing subscriber for tests to output logs to stderr.
///
/// Call this at the start of any test that needs detailed logging for debugging.
/// Logs will be printed to stderr and only shown when the test fails or when
/// running with `--nocapture`.
pub fn init_test_tracing() {
    use tracing_subscriber::{EnvFilter, fmt};

    drop(
        fmt()
            .with_env_filter(
                EnvFilter::try_from_default_env().unwrap_or_else(|_| {
                    EnvFilter::new("trace,agent_client_protocol::jsonrpc=trace")
                }),
            )
            .with_test_writer()
            .try_init(),
    );
}