-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore: strip posthog for sessions/models/daily only #7079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -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)] | ||||||||||||
|
Comment on lines
+247
to
+251
|
||||||||||||
| 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(); | ||||||||||||
|
Comment on lines
+265
to
269
|
||||||||||||
|
|
||||||||||||
| 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)] | ||||||||||||
|
Comment on lines
+545
to
+549
|
||||||||||||
| // Temporarily disabled - only session_started events are sent | |
| let _ = (event_name, &mut properties); | |
| return Ok(()); | |
| #[allow(unreachable_code)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR title/description says “daily active user ping only”, but this change still sends
session_startedon every session start (not once per day); either update the PR wording or add a daily throttle (e.g., persist last-sent date) to match the intended behavior.