Analytics for systemprompt.io AI governance infrastructure. Session, agent, tool, and microdollar-precision cost attribution across the MCP governance pipeline.
moddetail_queries;modlist_queries;modstats_queries;useanyhow::Result;usesqlx::PgPool;usestd::sync::Arc;usesystemprompt_database::DbPool;#[derive(Debug)]pubstructAgentAnalyticsRepository{pool:Arc<PgPool>,
}implAgentAnalyticsRepository{pubfnnew(db:&DbPool)->Result<Self>{let pool = db.pool_arc()?;Ok(Self{ pool })}}