feat(analytics): add guardian review event schema (#17055)

Just the analytics schema definition for guardian evaluations. No wiring
done yet.
This commit is contained in:
Owen Lin authored and GitHub committed 2026-04-10 17:33:58 -07:00
1 parent b114781495
commit 58933237cd
7 files changed
+241 -2

No files matched your search

+7
View File
@@ -1,4 +1,5 @@
use crate::events::AppServerRpcTransport;
use crate::events::GuardianReviewEventParams;
use crate::events::TrackEventRequest;
use crate::events::TrackEventsRequest;
use crate::events::current_runtime_metadata;
@@ -151,6 +152,12 @@ impl AnalyticsEventsClient {
));
}
pub fn track_guardian_review(&self, input: GuardianReviewEventParams) {
self.record_fact(AnalyticsFact::Custom(CustomAnalyticsFact::GuardianReview(
Box::new(input),
)));
}
pub fn track_app_mentioned(&self, tracking: TrackEventsContext, mentions: Vec<AppInvocation>) {
if mentions.is_empty() {
return;