Repository navigation
fix: sync GRPC_ENDPOINT_WHITELIST with its REST metrics sibling - #10968
Conversation
DeleteVectors, CreateFieldIndex, DeleteFieldIndex, SearchMatrixPairs, and SearchMatrixOffsets each already have a whitelisted REST endpoint in REST_ENDPOINT_WHITELIST, but were missing from the gRPC whitelist, so grpc_responses_total/latency metrics were silently absent for these operations while rest_responses_total had them. Same drift pattern and fix shape as qdrant#4812 (scroll endpoints).
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Friendly ping: this small fix (syncing |
DELETE /collections/{collection_name}/index/{field_name} is recorded under
its own route pattern, which was missing from REST_ENDPOINT_WHITELIST, so
rest_responses_total never reported field index deletions. The existing
/index entry only matches the PUT create route.
Extend the sibling test to check both whitelists for each gRPC/REST pair.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The test only re-asserted a hardcoded list of entries; sortedness is already covered by test_endpoint_whitelists_sorted. Co-Authored-By: Claude Opus 5.5 <[email protected]>
timvisee
left a comment
There was a problem hiding this comment.
Thanks! 😄
I've added another endpoint we added over time.
I've removed the test as I don't think it adds much value versus the constant list itself.
Fixes #10943
DeleteVectors, CreateFieldIndex, DeleteFieldIndex, SearchMatrixPairs, and SearchMatrixOffsets each already have a whitelisted REST endpoint in
REST_ENDPOINT_WHITELIST, but were missing from the gRPC whitelist, sogrpc_responses_totaland latency metrics were silently absent for these operations whilerest_responses_totalhad them. Same drift pattern and fix shape as #4812 (scroll endpoints).What
GRPC_ENDPOINT_WHITELISTinsrc/common/metrics/requests.rs:/qdrant.Points/DeleteVectors,/qdrant.Points/CreateFieldIndex,/qdrant.Points/DeleteFieldIndex,/qdrant.Points/SearchMatrixPairsand/qdrant.Points/SearchMatrixOffsets.How I checked
test_grpc_whitelist_matches_rest_sibling_endpoints. The existing sortedness test still passes.Searchwith grpcurl and read/metrics:dev, only/qdrant.Points/Searchwas listed.CreateFieldIndex,DeleteFieldIndex,DeleteVectors,SearchMatrixOffsetsandSearchMatrixPairsare listed too.cargo +1.99.0 test --bin qdrant common::metrics::requests(7 passed),cargo +nightly fmt --all, and clippy on the binary.All Submissions:
devbranch (notmaster) and my branch was created fromdev.New Feature Submissions:
cargo +nightly fmt --allcommand prior to submission?cargo clippy --workspace --all-featurescommand?Changes to Core Features:
AI disclosure
[AI]([AI] fix: sync GRPC_ENDPOINT_WHITELIST with its REST metrics sibling). No[manual]commits.