enact-core 0.0.1

Core agent runtime for Enact - Graph-Native AI agents
Documentation
//! Telemetry module - OpenTelemetry integration
//!
//! This module bridges core execution IDs and events into OpenTelemetry spans/traces.
//!
//! ## Important: Source of Truth
//!
//! IDs and Events are DEFINED in `kernel/` (source of truth).
//! This module bridges them into OpenTelemetry spans/traces.
//! No new domain types defined here.
//!
//! ## What This Module Provides
//!
//! - **Span attribute types**: ExecutionSpanAttributes, StepSpanAttributes, etc.
//! - **Span name generators**: execution_span_name, step_span_name, etc.
//! - **Trace context extraction**: extract_trace_context
//!
//! ## Architecture
//!
//! ```text
//! kernel/ (source of truth)
//!//!   │ IDs and Events
//!//! ┌─────────────────────────────────────────────────────────┐
//! │                    telemetry/                            │
//! │  ┌────────────┐  ┌────────────┐  ┌────────────┐       │
//! │  │   spans    │  │  exporter  │  │    init    │       │
//! │  │(attributes)│  │  (OTel)    │  │  (setup)   │       │
//! │  └────────────┘  └────────────┘  └────────────┘       │
//! └────────────────────────────┬────────────────────────────┘
//!//!//!                    OpenTelemetry Collector
//! ```
//!
//! @see docs/TECHNICAL/01-EXECUTION-TELEMETRY.md

mod exporter;
mod init;
mod spans;

pub use spans::{
    // Span attribute types
    ExecutionSpanAttributes, LlmSpanAttributes, StepSpanAttributes, ToolSpanAttributes,
    // Span name generators
    execution_span_name, llm_span_name, step_span_name, tool_span_name,
    // Trace utilities
    extract_trace_context,
};