Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

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.

ApiStats

Statistics for API calls.

PerformanceMonitor

Performance monitor for tracking function and API performance.

PerformanceReport

Performance report.

TelemetryEvent

A telemetry event.

TelemetryCollector

Telemetry collector.

TelemetryEventType

Event 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.

Rust Telemetry

Rust Tracing