aKode fase 1 (parziale): niente Statsig, analytics, upload Sentry, update check e announcement remoti
This commit is contained in:
@@ -398,12 +398,16 @@ impl AnalyticsEventsClient {
|
||||
!= codex_http_client::OpenAiDestination::Other
|
||||
}
|
||||
});
|
||||
let destination = AnalyticsEventsDestination::from_base_url(base_url, api_key_headers);
|
||||
Self {
|
||||
queue: (analytics_enabled != Some(false)).then(|| {
|
||||
AnalyticsEventsQueue::new(Arc::clone(&auth_manager), destination, runtime_auth)
|
||||
}),
|
||||
}
|
||||
// aKode: analytics are never uploaded. The upstream client posted
|
||||
// events to `{chatgpt_base_url}/codex/analytics-events/events`; the
|
||||
// queue is never created, so every `track_*` call is a no-op.
|
||||
let _ = (
|
||||
analytics_enabled,
|
||||
auth_manager,
|
||||
runtime_auth,
|
||||
AnalyticsEventsDestination::from_base_url(base_url, api_key_headers),
|
||||
);
|
||||
Self { queue: None }
|
||||
}
|
||||
|
||||
/// Give a resumed actor its own queue while preserving the caller's analytics setting.
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// aKode: event upload is disabled (see `client.rs`); the upstream sending
|
||||
// machinery is kept only until it is pruned, so dead-code warnings are expected.
|
||||
#![allow(dead_code)]
|
||||
mod accepted_lines;
|
||||
#[cfg(debug_assertions)]
|
||||
mod analytics_capture;
|
||||
|
||||
Reference in New Issue
Block a user