mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Merge #3524
3524: Update the metrics route r=irevoire a=irevoire Fixes #3523 Make the metrics available by default without a feature flag. + Rename the cli-flag to `experimental-enable-metrics`. Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
commit
89ac1015f3
10 changed files with 94 additions and 89 deletions
|
@ -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,9 +256,8 @@ impl From<Opt> for Infos {
|
|||
// to add analytics when we add a field in the Opt.
|
||||
// Thus we must not insert `..` at the end.
|
||||
let Opt {
|
||||
#[cfg(features = "metrics")]
|
||||
enable_metrics_route: _,
|
||||
db_path,
|
||||
experimental_enable_metrics,
|
||||
http_addr,
|
||||
master_key: _,
|
||||
env,
|
||||
|
@ -299,6 +299,7 @@ impl From<Opt> 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/"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue