@@ -5,12 +5,14 @@ use inaccurate_python_info::InaccuratePythonEnvironmentInfo;
55use missing_conda_info:: MissingCondaEnvironments ;
66use missing_poetry_info:: MissingPoetryEnvironments ;
77use refresh_performance:: RefreshPerformance ;
8+ use refresh_progress:: RefreshProgress ;
89use serde:: { Deserialize , Serialize } ;
910
1011pub mod inaccurate_python_info;
1112pub mod missing_conda_info;
1213pub mod missing_poetry_info;
1314pub mod refresh_performance;
15+ pub mod refresh_progress;
1416
1517pub type NumberOfCustomSearchPaths = u32 ;
1618
@@ -38,6 +40,8 @@ pub enum TelemetryEvent {
3840 MissingPoetryEnvironments ( MissingPoetryEnvironments ) ,
3941 /// Telemetry with metrics for finding all environments as a result of refresh.
4042 RefreshPerformance ( RefreshPerformance ) ,
43+ /// Progress through a refresh operation, including per-locator timing.
44+ RefreshProgress ( RefreshProgress ) ,
4145}
4246
4347pub fn get_telemetry_event_name ( event : & TelemetryEvent ) -> & ' static str {
@@ -57,5 +61,6 @@ pub fn get_telemetry_event_name(event: &TelemetryEvent) -> &'static str {
5761 TelemetryEvent :: MissingCondaEnvironments ( _) => "MissingCondaEnvironments" ,
5862 TelemetryEvent :: MissingPoetryEnvironments ( _) => "MissingPoetryEnvironments" ,
5963 TelemetryEvent :: RefreshPerformance ( _) => "RefreshPerformance" ,
64+ TelemetryEvent :: RefreshProgress ( _) => "RefreshProgress" ,
6065 }
6166}
0 commit comments