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