Expand description
Observability module for agent_io with tracing integration.
This module provides:
observemacro for tracing functions- Span helpers for manual instrumentation
Uses the tracing crate for structured logging and tracing.
§Example
ⓘ
use agent_io::observe;
#[observe(name = "my_function")]
async fn my_function() -> Result<(), Box<dyn std::error::Error>> {
Ok(())
}Structs§
- Observability
Status - Observability status information
Enums§
- Span
Type - Span types for categorization
Traits§
- SpanExt
- Extension trait for spans
Functions§
- agent_
span - Create a span for agent step
- get_
observability_ status - Get observability status
- init_
default_ subscriber - Initialize default tracing subscriber for development
- is_
tracing_ enabled - Check if tracing is enabled
- llm_
span - Create a span for LLM invocation
- tool_
span - Create a span for tool execution