[codex-analytics] add compaction analytics event

This commit is contained in:
rhan-oai
2026-04-08 13:10:12 -07:00
committed by Roy Han
parent 598d6ff056
commit d9757c306e
9 changed files with 565 additions and 10 deletions

View File

@@ -178,6 +178,12 @@ impl AnalyticsEventsClient {
)));
}
pub fn track_compaction(&self, event: crate::facts::CodexCompactionEvent) {
self.record_fact(AnalyticsFact::Custom(CustomAnalyticsFact::Compaction(
Box::new(event),
)));
}
pub fn track_plugin_installed(&self, plugin: PluginTelemetryMetadata) {
self.record_fact(AnalyticsFact::Custom(
CustomAnalyticsFact::PluginStateChanged(PluginStateChangedInput {