Send os_version and country to amplitude (#20936)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-11-20 15:34:24 -07:00 committed by GitHub
parent 29c9f0f6a1
commit ebca6a8f3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

@ -224,6 +224,8 @@ impl Telemetry {
cx.background_executor()
.spawn({
let state = state.clone();
let os_version = os_version();
state.lock().os_version = Some(os_version.clone());
async move {
if let Some(tempfile) = File::create(Self::log_file_path()).log_err() {
state.lock().log_file = Some(tempfile);