From bc7d4112d9a524b71c0a9a9debdc55aa944e4bbd Mon Sep 17 00:00:00 2001 From: Tamo Date: Tue, 21 Feb 2023 19:19:02 +0100 Subject: [PATCH] send the cli experimental feature in the analytics --- meilisearch/src/analytics/segment_analytics.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meilisearch/src/analytics/segment_analytics.rs b/meilisearch/src/analytics/segment_analytics.rs index a91ca9c96..05d592813 100644 --- a/meilisearch/src/analytics/segment_analytics.rs +++ b/meilisearch/src/analytics/segment_analytics.rs @@ -224,6 +224,7 @@ impl super::Analytics for SegmentAnalytics { #[derive(Debug, Clone, Serialize)] struct Infos { env: String, + experimental_enable_metrics: bool, db_path: bool, import_dump: bool, dump_dir: bool, @@ -255,8 +256,8 @@ impl From for Infos { // to add analytics when we add a field in the Opt. // Thus we must not insert `..` at the end. let Opt { - enable_metrics_route: _, db_path, + experimental_enable_metrics, http_addr, master_key: _, env, @@ -297,6 +298,7 @@ impl From for Infos { // We consider information sensible if it contains a path, an address, or a key. Self { env, + experimental_enable_metrics, db_path: db_path != PathBuf::from("./data.ms"), import_dump: import_dump.is_some(), dump_dir: dump_dir != PathBuf::from("dumps/"),