Skip to main content

record_persistent

Function record_persistent 

Source
pub fn record_persistent(category: &str, data: &Value) -> Result<()>
Expand description

Record a persistent telemetry entry. Currently a tracing-only sink; the signature is kept stable so a future disk-backed implementation can drop in without breaking callers.

ยงExamples

use codetether_agent::telemetry::record_persistent;
use serde_json::json;

record_persistent("test", &json!({"k": "v"})).unwrap();