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.
TelemetryContext
Defined in the Telemetry Funcs module.
Rust AI Agent SDK
Telemetry context for scoped tracking
Fields
| Name | Type | Description |
|---|
name | String | Context name |
start_time | std::time::Instant | Start time |
properties | std::collections::HashMap<String | Properties |
serde_json | :Value> | Properties |
Methods
new
fn new(name: impl Into<String>) -> Self
Create a new telemetry context
Parameters:
| Name | Type |
|---|
name | impl Into<String> |
property
fn property(mut self, key: impl Into<String>, value: serde_json::Value) -> Self
Add a property
Parameters:
| Name | Type |
|---|
key | impl Into<String> |
value | serde_json::Value |
elapsed_ms
fn elapsed_ms(&self) -> u64
Get elapsed time in milliseconds
complete
Complete the context and track event
Source
View on GitHub
praisonai/src/parity/telemetry_funcs.rs at line 256