diff --git a/docs/source/usage_statistics.md b/docs/source/usage_statistics.md index d3878b53ccb..889891de481 100644 --- a/docs/source/usage_statistics.md +++ b/docs/source/usage_statistics.md @@ -3,7 +3,8 @@ Text Generation Inference collects anonymous usage statistics to help us improve the service. The collected data is used to improve TGI and to understand what causes failures. The data is collected transparently and any sensitive information is omitted. -Data is sent twice, once on server startup and once when server stops. Also, usage statistics are only enabled when TGI is running in docker to avoid collecting data then TGI runs directly on the host machine. +Usage statistics are only enabled when TGI is running in docker to avoid collecting data then TGI runs directly on the host machine. Data is sent on +startup/shutdown events and a heartbeat every 15 minutes. ## What data is collected diff --git a/router/src/server.rs b/router/src/server.rs index a3d5eced7b1..e735bc75736 100644 --- a/router/src/server.rs +++ b/router/src/server.rs @@ -1918,7 +1918,7 @@ pub async fn run( start_event.send().await; let mut last_report = Instant::now(); while !stop_usage_thread_clone.load(Ordering::Relaxed) { - if last_report.elapsed() > Duration::from_secs(3600) { + if last_report.elapsed() > Duration::from_secs(900) { let report_event = usage_stats::UsageStatsEvent::new( ua.clone(), usage_stats::EventType::Ping,