Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change search latency metric from us unit to ms unit #37808

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/core/src/exec/operator/FilterBitsNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ PhyFilterBitsNode::GetOutput() {
double scalar_cost =
std::chrono::duration<double, std::micro>(scalar_end - scalar_start)
.count();
monitor::internal_core_search_latency_scalar.Observe(scalar_cost);
monitor::internal_core_search_latency_scalar.Observe(scalar_cost / 1000);

return std::make_shared<RowVector>(col_res);
}
Expand Down
2 changes: 1 addition & 1 deletion internal/core/src/exec/operator/GroupByNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ PhyGroupByNode::GetOutput() {
double vector_cost =
std::chrono::duration<double, std::micro>(vector_end - vector_start)
.count();
monitor::internal_core_search_latency_groupby.Observe(vector_cost);
monitor::internal_core_search_latency_groupby.Observe(vector_cost / 1000);
return input_;
}

Expand Down
2 changes: 1 addition & 1 deletion internal/core/src/exec/operator/VectorSearchNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ PhyVectorSearchNode::GetOutput() {
double vector_cost =
std::chrono::duration<double, std::micro>(vector_end - vector_start)
.count();
monitor::internal_core_search_latency_vector.Observe(vector_cost);
monitor::internal_core_search_latency_vector.Observe(vector_cost / 1000);
// for now, vector search store result in query_context
// this node interface just return bitset
return input_;
Expand Down
Loading