loa-core 1.2.0

Lightweight Observability Agent - Core, a library for building observability agents
Documentation

loa-core

Lightweight Observability Agent Core - A Rust library for building observability agents with proper supervision and actor-based architecture.

Features

  • Actor-based architecture using ractor
  • Supervised agent lifecycle management
  • Ed25519 identity and X25519 key exchange for secure communication
  • Built-in metrics collection and downsampling
  • HTTP client with middleware support
  • Configurable heartbeat and alerting

Installation

Add to your Cargo.toml:

[dependencies]
loa-core = "1.0"

Usage

use loa_core::Agent;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let agent = Agent::builder()
        .storage_path("/var/lib/loa")
        .build()
        .await?;

    agent.run().await?;
    Ok(())
}

License

MIT