MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / analytics_event

Function analytics_event

tests/dashboard_api_test/analytics.rs:129–145  ·  view source on GitHub ↗
(project_id: &str, timestamp: i64, event_kind: &str)

Source from the content-addressed store, hash-verified

127}
128
129fn analytics_event(project_id: &str, timestamp: i64, event_kind: &str) -> AnalyticsEventInsert {
130 AnalyticsEventInsert {
131 provider: "codex".to_string(),
132 project_id: project_id.to_string(),
133 session_id: Some("analytics-session".to_string()),
134 timestamp,
135 event_kind: event_kind.to_string(),
136 hook_name: None,
137 tool_name: None,
138 tool_category: None,
139 skill_name: None,
140 hint_category: None,
141 hint_id: None,
142 outcome: None,
143 metadata_json: None,
144 }
145}
146
147async fn seed_durable_analytics(db_path: &Path, project_root: &Path) {
148 let gdb = GlobalDb::open_at(db_path).await.expect("open global db");

Callers 3

seed_durable_analyticsFunction · 0.70
seed_fallback_analyticsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected