chore: strip posthog for sessions/models/daily only (#7079)

This commit is contained in:
Michael Neale
2026-02-09 19:32:51 +11:00
committed by GitHub
parent a3ba124178
commit a9f4cac548
+14
View File
@@ -244,6 +244,11 @@ pub fn emit_error_with_context(error_type: &str, context: ErrorContext) {
return;
}
// Temporarily disabled - only session_started events are sent
let _ = (&error_type, &context);
return;
#[allow(unreachable_code)]
let installation = load_or_create_installation();
let error_type = error_type.to_string();
@@ -257,6 +262,10 @@ pub fn emit_custom_slash_command_used() {
return;
}
// Temporarily disabled - only session_started events are sent
return;
#[allow(unreachable_code)]
let installation = load_or_create_installation();
tokio::spawn(async move {
@@ -533,6 +542,11 @@ pub async fn emit_event(
return Ok(());
}
// Temporarily disabled - only session_started events are sent
let _ = (event_name, &mut properties);
return Ok(());
#[allow(unreachable_code)]
let installation = load_or_create_installation();
let client = posthog_rs::client(POSTHOG_API_KEY).await;
let mut event = posthog_rs::Event::new(event_name, &installation.installation_id);