> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# telemetry • Rust AI Agent SDK

> Telemetry Module for PraisonAI Rust SDK.

# telemetry

<Badge color="orange">Rust AI Agent SDK</Badge>

Telemetry Module for PraisonAI Rust SDK.

Provides performance monitoring and telemetry capabilities.

# Example

```ignore theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
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

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
use praisonai::telemetry::*;
```

## Classes

<CardGroup cols={2}>
  <Card title="FunctionStats" icon="brackets-curly" href="../classes/FunctionStats">
    Statistics for a tracked function.
  </Card>

  <Card title="ApiStats" icon="brackets-curly" href="../classes/ApiStats">
    Statistics for API calls.
  </Card>

  <Card title="PerformanceMonitor" icon="brackets-curly" href="../classes/PerformanceMonitor">
    Performance monitor for tracking function and API performance.
  </Card>

  <Card title="PerformanceReport" icon="brackets-curly" href="../classes/PerformanceReport">
    Performance report.
  </Card>

  <Card title="TelemetryEvent" icon="brackets-curly" href="../classes/TelemetryEvent">
    A telemetry event.
  </Card>

  <Card title="TelemetryCollector" icon="brackets-curly" href="../classes/TelemetryCollector">
    Telemetry collector.
  </Card>

  <Card title="TelemetryEventType" icon="brackets-curly" href="../classes/TelemetryEventType">
    Event types for telemetry.
  </Card>
</CardGroup>

## Functions

<CardGroup cols={2}>
  <Card title="get_monitor()" icon="function" href="../functions/get_monitor">
    Get the global performance monitor.
  </Card>

  <Card title="get_collector()" icon="function" href="../functions/get_collector">
    Get the global telemetry collector.
  </Card>

  <Card title="track_function()" icon="function" href="../functions/track_function">
    Track a function call on the global monitor.
  </Card>

  <Card title="track_api()" icon="function" href="../functions/track_api">
    Track an API call on the global monitor.
  </Card>

  <Card title="record_event()" icon="function" href="../functions/record_event">
    Record a telemetry event.
  </Card>

  <Card title="get_performance_report()" icon="function" href="../functions/get_performance_report">
    Get the global performance report.
  </Card>
</CardGroup>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Telemetry" icon="signal" href="/docs/rust/telemetry" />

  <Card title="Rust Tracing" icon="chart-line" href="/docs/rust/tracing" />
</CardGroup>
