MinimalTelemetry
Defined in the Telemetry Funcs module.Rust AI Agent SDK Minimal telemetry implementation Provides basic telemetry functionality with minimal overhead. When performance mode is enabled, telemetry operations are no-ops.
Fields
| Name | Type | Description |
|---|---|---|
enabled | bool | Whether telemetry is enabled |
session_id | String | Session ID for correlation |
user_id | Option<String> | User ID (optional) |
properties | std::collections::HashMap<String | Additional properties |
serde_json | :Value> | Additional properties |
Methods
new
with_session_id
| Name | Type |
|---|---|
session_id | impl Into<String> |
set_user_id
| Name | Type |
|---|---|
user_id | impl Into<String> |
session_id
user_id
is_enabled
enable
disable
set_property
| Name | Type |
|---|---|
key | impl Into<String> |
value | serde_json::Value |
get_property
| Name | Type |
|---|---|
key | &str |
track_event
| Name | Type |
|---|---|
event_name | &str |
properties | Option<&serde_json::Value> |
track_agent_start
| Name | Type |
|---|---|
agent_name | &str |
model | &str |
track_agent_complete
| Name | Type |
|---|---|
agent_name | &str |
duration_ms | u64 |
track_tool_execution
| Name | Type |
|---|---|
tool_name | &str |
success | bool |
duration_ms | u64 |
track_llm_call
| Name | Type |
|---|---|
model | &str |
input_tokens | Option<u32> |
output_tokens | Option<u32> |
duration_ms | u64 |
track_error
| Name | Type |
|---|---|
error_type | &str |
error_message | &str |
flush
cleanup
Source
View on GitHub
praisonai/src/parity/telemetry_funcs.rs at line 29
