Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

21 Commits

Repository files navigation

AIngle Logo

observability

Structured contextual logging and tracing for AIngle

Crates.ioDocumentationLicenseCI Status


Overview

Structured contextual logging built on tracing. This crate provides experimental observability features for AIngle distributed systems, including console output, JSON logging, and span filtering.

Features

  • Structured logging - Context-aware log events with spans
  • Multiple outputs - Console, JSON, and custom formatters
  • Powerful filtering - Filter by module, span, or field values
  • Zero-cost abstractions - Disabled spans compile to no-ops

Installation

[dependencies]
observability = "0.1"

Quick Start

Console Logging

# Simple logging
RUST_LOG=trace cargo run
# Filtered logging
RUST_LOG='core[a{something="foo"}]=debug' cargo run

JSON Output

RUST_LOG='core[{}]=debug' cargo run --structured Json > log.json

Filter Syntax

# Module + span + field filtering
RUST_LOG='core[a{something="foo"}]=debug'# Multiple filters
RUST_LOG='[{}]=error,[{something}]=debug'
ComponentDescription
coreModule path filter
[a]Span name filter
{field="value"}Field value filter
=debugMinimum log level

JSON Output

{
"time": "2024-01-01T00:00:00.000Z",
"name": "event",
"level": "INFO",
"target": "my_module",
"file": "src/lib.rs",
"line": 42,
"fields": {"message": "Hello"},
"spans": [{"name": "request", "id": 1}]
}

Useful Tools

ToolPurpose
jqJSON processing
json2csvConvert to CSV
tadCSV viewer

Resources

Part of AIngle

This crate is part of the AIngle ecosystem - a Semantic DAG framework for IoT and distributed AI applications.

License

Licensed under the MIT License. See LICENSE for details.


Maintained by Apilium Technologies - Tallinn, Estonia

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages