1875: Fix search post event and disk size analytics r=irevoire a=gmourier - Branch POST search on the post_search aggregator - Use largest disk `total_space` instead of `available_space` 1876: Update SEGMENT_API_KEY r=irevoire a=gmourier Branch it on our Segment production stack Co-authored-by: Guillaume Mourier <guillaume@meilisearch.com>
This commit is contained in:
commit
3f4e0ec971
|
@ -38,7 +38,7 @@ fn write_user_id(db_path: &Path, user_id: &str) {
|
|||
}
|
||||
}
|
||||
|
||||
const SEGMENT_API_KEY: &str = "vHi89WrNDckHSQssyUJqLvIyp2QFITSC";
|
||||
const SEGMENT_API_KEY: &str = "P3FWhhEsJiEDCuEHpmcN9DHcK4hVfBvb";
|
||||
|
||||
pub fn extract_user_agents(request: &HttpRequest) -> Vec<String> {
|
||||
request
|
||||
|
@ -187,7 +187,7 @@ impl Segment {
|
|||
"kernel_version": kernel_version,
|
||||
"cores": sys.processors().len(),
|
||||
"ram_size": sys.total_memory(),
|
||||
"disk_size": sys.disks().iter().map(|disk| disk.available_space()).max(),
|
||||
"disk_size": sys.disks().iter().map(|disk| disk.total_space()).max(),
|
||||
"server_provider": std::env::var("MEILI_SERVER_PROVIDER").ok(),
|
||||
})
|
||||
});
|
||||
|
|
|
@ -150,7 +150,7 @@ pub async fn search_with_post(
|
|||
if let Ok(ref search_result) = search_result {
|
||||
aggregate.succeed(search_result);
|
||||
}
|
||||
analytics.get_search(aggregate);
|
||||
analytics.post_search(aggregate);
|
||||
|
||||
let search_result = search_result?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue