telemetry • Rust AI Agent SDK
Telemetry Module for PraisonAI Rust SDK.
telemetry
Rust AI Agent SDK
Telemetry Module for PraisonAI Rust SDK.
Provides performance monitoring and telemetry capabilities.
Example
use praisonai::telemetry::{PerformanceMonitor, FunctionStats};
let monitor = PerformanceMonitor::new();
monitor.track_function("my_function", Duration::from_millis(100));
let stats = monitor.get_stats("my_function");Import
use praisonai::telemetry::*;Classes
FunctionStats
Statistics for a tracked function.
ApiStatsStatistics for API calls.
PerformanceMonitorPerformance monitor for tracking function and API performance.
PerformanceReportPerformance report.
TelemetryEventA telemetry event.
TelemetryCollectorTelemetry collector.
TelemetryEventTypeEvent types for telemetry.
Functions
get_monitor()
Get the global performance monitor.
get_collector()Get the global telemetry collector.
track_function()Track a function call on the global monitor.
track_api()Track an API call on the global monitor.
record_event()Record a telemetry event.
get_performance_report()Get the global performance report.