Skip to main content

Crate loa_core

Crate loa_core 

Source
Expand description

Embeddable Lightweight Observability (elo)

A library for building observability agents with proper supervision and actor-based architecture.

§Example

use elo::Agent;

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

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

Modules§

constants
Global constants and configuration defaults for the agent
core
Core actors and factories
http
Provides a centralized HTTP client configuration with:

Structs§

Agent
The main agent handle returned by the builder
AgentBuilder
Builder for configuring and creating an Agent
AgentIdentity
AgentInfo
Lightweight agent information that can be read without starting the runtime.

Enums§

Error
Error types for elo

Constants§

VERSION
Compile-time version from Cargo.toml

Functions§

get_global_identity
Get a clone of the global agent identity
init_global_identity
Initialize the global agent identity

Type Aliases§

Result
Result type alias for elo operations