Send the vector.max_vector_size telemetry

This commit is contained in:
Kerollmops 2023-07-10 16:50:37 +02:00
parent eb7a1aa7af
commit 012c960fad
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -723,6 +723,9 @@ impl SearchAggregator {
// q // q
self.max_terms_number = self.max_terms_number.max(other.max_terms_number); self.max_terms_number = self.max_terms_number.max(other.max_terms_number);
// vector
self.max_vector_size = self.max_vector_size.max(other.max_vector_size);
// pagination // pagination
self.max_limit = self.max_limit.max(other.max_limit); self.max_limit = self.max_limit.max(other.max_limit);
self.max_offset = self.max_offset.max(other.max_offset); self.max_offset = self.max_offset.max(other.max_offset);
@ -789,6 +792,9 @@ impl SearchAggregator {
"q": { "q": {
"max_terms_number": self.max_terms_number, "max_terms_number": self.max_terms_number,
}, },
"vector": {
"max_vector_size": self.max_vector_size,
},
"pagination": { "pagination": {
"max_limit": self.max_limit, "max_limit": self.max_limit,
"max_offset": self.max_offset, "max_offset": self.max_offset,