chore: strip posthog for sessions/models/daily only (#7079)
This commit is contained in:
@@ -244,6 +244,11 @@ pub fn emit_error_with_context(error_type: &str, context: ErrorContext) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Temporarily disabled - only session_started events are sent
|
||||||
|
let _ = (&error_type, &context);
|
||||||
|
return;
|
||||||
|
|
||||||
|
#[allow(unreachable_code)]
|
||||||
let installation = load_or_create_installation();
|
let installation = load_or_create_installation();
|
||||||
let error_type = error_type.to_string();
|
let error_type = error_type.to_string();
|
||||||
|
|
||||||
@@ -257,6 +262,10 @@ pub fn emit_custom_slash_command_used() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Temporarily disabled - only session_started events are sent
|
||||||
|
return;
|
||||||
|
|
||||||
|
#[allow(unreachable_code)]
|
||||||
let installation = load_or_create_installation();
|
let installation = load_or_create_installation();
|
||||||
|
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
@@ -533,6 +542,11 @@ pub async fn emit_event(
|
|||||||
return Ok(());
|
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 installation = load_or_create_installation();
|
||||||
let client = posthog_rs::client(POSTHOG_API_KEY).await;
|
let client = posthog_rs::client(POSTHOG_API_KEY).await;
|
||||||
let mut event = posthog_rs::Event::new(event_name, &installation.installation_id);
|
let mut event = posthog_rs::Event::new(event_name, &installation.installation_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user