From cfcd3ae04813ee17a5de55d433f9d8cf7cf70f04 Mon Sep 17 00:00:00 2001 From: Tamo Date: Wed, 20 Oct 2021 14:24:34 +0200 Subject: [PATCH] move the version to context.app --- meilisearch-http/src/analytics.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meilisearch-http/src/analytics.rs b/meilisearch-http/src/analytics.rs index f000a54d9..e200141a0 100644 --- a/meilisearch-http/src/analytics.rs +++ b/meilisearch-http/src/analytics.rs @@ -60,7 +60,6 @@ mod segment { }) }); let infos = json!({ - "version": env!("CARGO_PKG_VERSION").to_string(), "env": opt.env.clone(), "has_snapshot": opt.schedule_snapshot, }); @@ -137,6 +136,11 @@ mod segment { .lock() .await .push(Identify { + context: Some(json!({ + "app": { + "version": env!("CARGO_PKG_VERSION").to_string(), + }, + })), user, traits, ..Default::default()